Skip to content

[NativeAOT] Implement thin locks #75108

@VSadov

Description

@VSadov

CoreClr is able to use object header bits for locking in trivial cases. That makes typical use of lock fairly cheap. NativeAOT does not have that and lock(obj) is always a "fat lock".

This is likely the reason for regressions in ConcurrentDictionary benchmarks.
(re: #68891)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions