5 writes to _slots
Microsoft.Build (5)
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (5)
555
_slots
= new Slot[capacity];
709
_slots
= null;
743
_slots
= newSlots;
765
_slots
= new Slot[size];
798
_slots
= newSlots;
35 references to _slots
Microsoft.Build (35)
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (35)
181
if ((_count == 0 &&
_slots
.Length > HashHelpers.GetMinPrime()) ||
182
(_count > 0 &&
_slots
.Length / _count > ShrinkThreshold))
267
Array.Clear(
_slots
, 0, _lastIndex);
366
for (int i = _buckets[hashCode % _buckets.Length] - 1; i >= 0; i =
_slots
[i].next)
368
if (
_slots
[i].hashCode == hashCode && _constrainedComparer != null ? _constrainedComparer.Equals(
_slots
[i].value.Key, item, index, length) : _comparer.Equals(
_slots
[i].value.Key, item))
370
return
_slots
[i].value;
419
for (int i = _buckets[bucket] - 1; i >= 0; last = i, i =
_slots
[i].next)
421
if (
_slots
[i].hashCode == hashCode && _comparer.Equals(
_slots
[i].value.Key, item))
426
_buckets[bucket] =
_slots
[i].next + 1;
431
_slots
[last].next =
_slots
[i].next;
433
_slots
[i].hashCode = -1;
434
_slots
[i].value = default(T);
435
_slots
[i].next = _freeList;
682
if (
_slots
[i].hashCode >= 0)
684
array[arrayIndex + numCopied] =
_slots
[i].value;
727
if (
_slots
[i].hashCode >= 0)
729
newSlots[newIndex] =
_slots
[i];
740
Debug.Assert(newSlots.Length <=
_slots
.Length, "capacity increased after TrimExcess");
786
if (
_slots
!= null)
788
Array.Copy(
_slots
, 0, newSlots, 0, _lastIndex);
824
for (int i = _buckets[hashCode % _buckets.Length] - 1; i >= 0; i =
_slots
[i].next)
826
if (
_slots
[i].hashCode == hashCode && _comparer.Equals(
_slots
[i].value.Key, key))
831
_slots
[i].value = value;
839
_freeList =
_slots
[index].next;
843
if (_lastIndex ==
_slots
.Length)
852
_slots
[index].hashCode = hashCode;
853
_slots
[index].value = value;
854
_slots
[index].next = _buckets[bucket] - 1;
976
if (_set.
_slots
[_index].hashCode >= 0)
978
_current = _set.
_slots
[_index].value;