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)
131
if (
_count
> 0 && _entries.Length /
_count
> ShrinkThreshold)
171
_count = source.
_count
;
179
for (var i = 0; i < source.
_count
; i++)
201
var count =
_count
;
358
public int Count =>
_count
- _freeCount;
822
for (var i = 0; i <
_count
&& count != 0; i++)
843
for (var i = 0; i <
_count
; i++)
897
private void Resize() => Resize(HashHelpers.ExpandPrime(
_count
));
904
var count =
_count
;
964
var oldCount =
_count
;
1096
var count =
_count
;
1150
for (var i = 0; i <
_count
; i++)
1176
var originalCount =
_count
;
1244
var originalCount =
_count
;
1317
if (
_count
== 0)
1329
Debug.Assert((_buckets.Length > 0) && (
_count
> 0), "_buckets was empty but count greater than 0");
1331
var originalCount =
_count
;
1412
while ((uint)_index < (uint)_hashSet.
_count
)
1422
_index = _hashSet.
_count
+ 1;
1435
if (_index == 0 || (_index == _hashSet.
_count
+ 1))