4 writes to _count
Microsoft.CodeAnalysis.Threading.Package (4)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (4)
171_count = source._count; 208_count = 0; 983_count = capacity; 1103_count = count + 1;
21 references to _count
Microsoft.CodeAnalysis.Threading.Package (21)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (21)
131if (_count > 0 && _entries.Length / _count > ShrinkThreshold) 171_count = source._count; 179for (var i = 0; i < source._count; i++) 201var count = _count; 358public int Count => _count - _freeCount; 822for (var i = 0; i < _count && count != 0; i++) 843for (var i = 0; i < _count; i++) 897private void Resize() => Resize(HashHelpers.ExpandPrime(_count)); 904var count = _count; 964var oldCount = _count; 1096var count = _count; 1150for (var i = 0; i < _count; i++) 1176var originalCount = _count; 1244var originalCount = _count; 1317if (_count == 0) 1329Debug.Assert((_buckets.Length > 0) && (_count > 0), "_buckets was empty but count greater than 0"); 1331var originalCount = _count; 1412while ((uint)_index < (uint)_hashSet._count) 1422_index = _hashSet._count + 1; 1435if (_index == 0 || (_index == _hashSet._count + 1))