Skip to content

Commit

Permalink
Remove volatile on field in ConcurrentDictionary.Tables (dotnet#36976)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub committed May 25, 2020
1 parent bd6cbe3 commit d0e2281
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private sealed class Tables
{
internal readonly Node[] _buckets; // A singly-linked list for each bucket.
internal readonly object[] _locks; // A set of locks, each guarding a section of the table.
internal volatile int[] _countPerLock; // The number of elements guarded by each lock.
internal readonly int[] _countPerLock; // The number of elements guarded by each lock.

internal Tables(Node[] buckets, object[] locks, int[] countPerLock)
{
Expand Down

0 comments on commit d0e2281

Please sign in to comment.