Skip to content

DotNetRuntimeStatsCollector - static dictionary updated under instance-level lock #79

@AvenDonn

Description

@AvenDonn

The ctor for DotNetRuntimeStatsCollector updates the static dictionary Instances under the _lockInstance lock, which is not itself static.
Same problem when disposing of course.

This means any two or more DotNetRuntimeStatsCollectors created will end up updating the dictionary.

The solution would be to make the lock static.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions