3 instantiations of Tables
System.Collections.Concurrent (3)
System\Collections\Concurrent\ConcurrentDictionary.cs (3)
226
_tables = new
Tables
(buckets, locks, countPerLock, comparer);
725
var newTables = new
Tables
(new VolatileNode[HashHelpers.GetPrime(_initialCapacity)], tables._locks, new int[tables._countPerLock.Length], tables._comparer);
2014
var newTables = new
Tables
(newBuckets, newLocks, newCountPerLock, upgradeComparer ?? tables._comparer);
26 references to Tables
System.Collections.Concurrent (26)
System\Collections\Concurrent\ConcurrentDictionary.cs (26)
31
private volatile
Tables
_tables;
36
/// <summary>Whether a non-null comparer in <see cref="
Tables
._comparer"/> is the default comparer.</summary>
351
Tables
tables = _tables;
442
Tables
tables = _tables;
524
Tables
tables = _tables;
558
private static bool TryGetValueInternal(
Tables
tables, TKey key, int hashcode, [MaybeNullWhen(false)] out TValue value)
633
private bool TryUpdateInternal(
Tables
tables, TKey key, int? nullableHashcode, TValue newValue, TValue comparisonValue)
724
Tables
tables = _tables;
725
var
newTables = new Tables(new VolatileNode[HashHelpers.GetPrime(_initialCapacity)], tables._locks, new int[tables._countPerLock.Length], tables._comparer);
921
private bool TryAddInternal(
Tables
tables, TKey key, int? nullableHashcode, TValue value, bool updateIfExists, bool acquireLock, out TValue resultingValue)
1194
Tables
tables = _tables;
1236
Tables
tables = _tables;
1268
Tables
tables = _tables;
1320
Tables
tables = _tables;
1393
Tables
tables = _tables;
1459
Tables
tables = _tables;
1941
private void GrowTable(
Tables
tables, bool resizeDesired, bool forceRehashIfNonRandomized)
2014
var
newTables = new Tables(newBuckets, newLocks, newCountPerLock, upgradeComparer ?? tables._comparer);
2098
private static void AcquirePostFirstLock(
Tables
tables, ref int locksAcquired)
2229
private static Node? GetBucket(
Tables
tables, int hashcode)
2245
private static ref Node? GetBucketAndLock(
Tables
tables, int hashcode, out uint lockNo)
2316
private static bool IsCompatibleKey<TAlternateKey>(ConcurrentDictionary<TKey, TValue>.
Tables
tables)
2325
private static IAlternateEqualityComparer<TAlternateKey, TKey> GetAlternateComparer<TAlternateKey>(ConcurrentDictionary<TKey, TValue>.
Tables
tables)
2391
Tables
tables = Dictionary._tables;
2550
Tables
tables = Dictionary._tables;
2596
Tables
tables = Dictionary._tables;