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);
2039
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);
946
private bool TryAddInternal(
Tables
tables, TKey key, int? nullableHashcode, TValue value, bool updateIfExists, bool acquireLock, out TValue resultingValue)
1219
Tables
tables = _tables;
1261
Tables
tables = _tables;
1293
Tables
tables = _tables;
1345
Tables
tables = _tables;
1418
Tables
tables = _tables;
1484
Tables
tables = _tables;
1966
private void GrowTable(
Tables
tables, bool resizeDesired, bool forceRehashIfNonRandomized)
2039
var
newTables = new Tables(newBuckets, newLocks, newCountPerLock, upgradeComparer ?? tables._comparer);
2123
private static void AcquirePostFirstLock(
Tables
tables, ref int locksAcquired)
2254
private static Node? GetBucket(
Tables
tables, int hashcode)
2270
private static ref Node? GetBucketAndLock(
Tables
tables, int hashcode, out uint lockNo)
2341
private static bool IsCompatibleKey<TAlternateKey>(ConcurrentDictionary<TKey, TValue>.
Tables
tables)
2350
private static IAlternateEqualityComparer<TAlternateKey, TKey> GetAlternateComparer<TAlternateKey>(ConcurrentDictionary<TKey, TValue>.
Tables
tables)
2416
Tables
tables = Dictionary._tables;
2575
Tables
tables = Dictionary._tables;
2621
Tables
tables = Dictionary._tables;