1 write to _locks
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
2281
_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);
930
object[] locks = tables.
_locks
;
1999
object[] newLocks = tables.
_locks
;
2002
if (_growLockArray && tables.
_locks
.Length < MaxLockNumber)
2004
newLocks = new object[tables.
_locks
.Length * 2];
2005
Array.Copy(tables.
_locks
, newLocks, tables.
_locks
.Length);
2006
for (int i = tables.
_locks
.Length; i < newLocks.Length; i++)
2071
Debug.Assert(locksAcquired == _tables.
_locks
.Length);
2083
object[] locks = _tables.
_locks
;
2100
object[] locks = tables.
_locks
;
2119
object[] locks = _tables.
_locks
;
2257
lockNo = bucketNo % (uint)tables.
_locks
.Length; // doesn't use FastMod, as it would require maintaining a different multiplier
2398
object[] locks = tables.
_locks
;
2602
object[] locks = tables.
_locks
;