Skip to content

Not all contention is are reported via Lock contention #37023

@benaadams

Description

@benaadams

lock aka Monitor records contention prior to beginning its spin->wait cycle; however if contention happens in SpinLock and it has to spin, that isn't surfaced via this counter.

Related but different, I think contention handled via a SpinWait isn't surfaced this way (e.g. ConcurrentQueue), though it's not a lock perse; but the contention figure gives an incomplete picture.

So they be added?

/cc @kouvel @stephentoub

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions