Skip to content

[NativeAOT] CreateThreadLocalContentionCountObject can be reentrant on NativeAOT and deadlock #70453

Description

@VSadov

Creating a sub-counter takes locks on NativeAOT. If we contend again, we will try to record that contention while still working on theouter one. That will assert in debug and deadlock otherwise.

This is fairly rare, but needs to be addressed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions