1 write to _locks
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
2306
_locks
= locks;
19 references to _locks
System.Collections.Concurrent (19)
System\Collections\Concurrent\ConcurrentDictionary.cs (19)
352
_budget = tables._buckets.Length / tables.
_locks
.Length;
449
object[] locks = tables.
_locks
;
644
object[] locks = tables.
_locks
;
725
var newTables = new Tables(new VolatileNode[HashHelpers.GetPrime(_initialCapacity)], tables.
_locks
, new int[tables._countPerLock.Length], tables._comparer);
727
_budget = Math.Max(1, newTables._buckets.Length / newTables.
_locks
.Length);
955
object[] locks = tables.
_locks
;
2024
object[] newLocks = tables.
_locks
;
2027
if (_growLockArray && tables.
_locks
.Length < MaxLockNumber)
2029
newLocks = new object[tables.
_locks
.Length * 2];
2030
Array.Copy(tables.
_locks
, newLocks, tables.
_locks
.Length);
2031
for (int i = tables.
_locks
.Length; i < newLocks.Length; i++)
2096
Debug.Assert(locksAcquired == _tables.
_locks
.Length);
2108
object[] locks = _tables.
_locks
;
2125
object[] locks = tables.
_locks
;
2144
object[] locks = _tables.
_locks
;
2282
lockNo = bucketNo % (uint)tables.
_locks
.Length; // doesn't use FastMod, as it would require maintaining a different multiplier
2423
object[] locks = tables.
_locks
;
2627
object[] locks = tables.
_locks
;