3 writes to _buckets
Microsoft.CodeAnalysis.Threading.Package (3)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
167
_buckets
= (SegmentedArray<int>)source._buckets.Clone();
910
_buckets
= new SegmentedArray<int>(newSize);
1006
_buckets
= buckets;
13 references to _buckets
Microsoft.CodeAnalysis.Threading.Package (13)
src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (13)
162
var capacity = source.
_buckets
.Length;
167
_buckets = (SegmentedArray<int>)source.
_buckets
.Clone();
204
Debug.Assert(
_buckets
.Length > 0, "_buckets should be non-empty");
207
SegmentedArray.Clear(
_buckets
);
223
var buckets =
_buckets
;
287
var buckets =
_buckets
;
293
if (
_buckets
.Length > 0)
400
if (
_buckets
.Length > 0)
887
if (
_buckets
.Length == 0)
1019
if (
_buckets
.Length == 0)
1023
Debug.Assert(
_buckets
.Length > 0);
1172
Debug.Assert(
_buckets
.Length > 0, "_buckets shouldn't be empty; callers should check first");
1329
Debug.Assert((
_buckets
.Length > 0) && (_count > 0), "_buckets was empty but count greater than 0");