5 writes to _slots
Microsoft.Build (5)
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (5)
558
_slots
= new Slot[capacity];
712
_slots
= null;
746
_slots
= newSlots;
768
_slots
= new Slot[size];
801
_slots
= newSlots;
35 references to _slots
Microsoft.Build (35)
Collections\RetrievableEntryHashSet\RetrievableEntryHashSet.cs (35)
184
if ((_count == 0 &&
_slots
.Length > HashHelpers.GetMinPrime()) ||
185
(_count > 0 &&
_slots
.Length / _count > ShrinkThreshold))
270
Array.Clear(
_slots
, 0, _lastIndex);
369
for (int i = _buckets[hashCode % _buckets.Length] - 1; i >= 0; i =
_slots
[i].next)
371
if (
_slots
[i].hashCode == hashCode && _constrainedComparer != null ? _constrainedComparer.Equals(
_slots
[i].value.Key, item, index, length) : _comparer.Equals(
_slots
[i].value.Key, item))
373
return
_slots
[i].value;
422
for (int i = _buckets[bucket] - 1; i >= 0; last = i, i =
_slots
[i].next)
424
if (
_slots
[i].hashCode == hashCode && _comparer.Equals(
_slots
[i].value.Key, item))
429
_buckets[bucket] =
_slots
[i].next + 1;
434
_slots
[last].next =
_slots
[i].next;
436
_slots
[i].hashCode = -1;
437
_slots
[i].value = default(T);
438
_slots
[i].next = _freeList;
685
if (
_slots
[i].hashCode >= 0)
687
array[arrayIndex + numCopied] =
_slots
[i].value;
730
if (
_slots
[i].hashCode >= 0)
732
newSlots[newIndex] =
_slots
[i];
743
Debug.Assert(newSlots.Length <=
_slots
.Length, "capacity increased after TrimExcess");
789
if (
_slots
!= null)
791
Array.Copy(
_slots
, 0, newSlots, 0, _lastIndex);
827
for (int i = _buckets[hashCode % _buckets.Length] - 1; i >= 0; i =
_slots
[i].next)
829
if (
_slots
[i].hashCode == hashCode && _comparer.Equals(
_slots
[i].value.Key, key))
834
_slots
[i].value = value;
842
_freeList =
_slots
[index].next;
846
if (_lastIndex ==
_slots
.Length)
855
_slots
[index].hashCode = hashCode;
856
_slots
[index].value = value;
857
_slots
[index].next = _buckets[bucket] - 1;
979
if (_set.
_slots
[_index].hashCode >= 0)
981
_current = _set.
_slots
[_index].value;