forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ConcurrentDictionary.IsEmpty fast path (dotnet/corefx#30098)
If an unprotected iteration of the buckets shows the collection is not empty, we can return false without ever acquiring a lock. If we do not observe an entry, we must fall back to acquiring a lock and re-scanning. Fixes dotnet/corefx#29994. Commit migrated from dotnet/corefx@bf2fdb6
- Loading branch information
1 parent
099776a
commit cf7e566
Showing
1 changed file
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters