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