12 writes to _count
Microsoft.Extensions.Caching.Memory (12)
CacheEntry.ExpirationTokensList.cs (12)
44
return new ReadOnlySpan<IChangeToken>(state._items, 0, Volatile.Read(ref state.
_count
));
53
return Volatile.Read(ref state.
_count
);
64
return (uint)index >= (uint)Volatile.Read(ref state.
_count
)
145
state.
_count
= updatedCount;
187
state.
_count
= 0;
225
return Array.IndexOf(state._items, item, 0, Volatile.Read(ref state.
_count
));
231
Array.Copy(state._items, 0, array, arrayIndex, Volatile.Read(ref state.
_count
));
238
int count = Volatile.Read(ref state.
_count
);
285
Volatile.Write(ref state.
_count
, count);
289
state.
_count
= count;
315
state.
_count
= updatedCount;
342
_count
= count;
9 references to _count
Microsoft.Extensions.Caching.Memory (9)
CacheEntry.ExpirationTokensList.cs (9)
73
int count = state.
_count
;
98
int count = state.
_count
;
116
int count = state.
_count
;
129
int count = state.
_count
;
162
int count = state.
_count
;
186
Array.Clear(state._items, 0, state.
_count
);
201
int count = state.
_count
;
307
Array.Copy(state._items, items, state.
_count
);
313
int updatedCount = state.
_count
- 1;