1 write to _weakHandlesByHashCode
Microsoft.NET.StringTools (1)
WeakStringCache.Concurrent.cs (1)
24
_weakHandlesByHashCode
= new ConcurrentDictionary<int, StringWeakHandle>(Environment.ProcessorCount, _initialCapacity);
9 references to _weakHandlesByHashCode
Microsoft.NET.StringTools (9)
WeakStringCache.Concurrent.cs (6)
68
ConcurrentDictionary<int, StringWeakHandle> weakHandlesByHashCode =
_weakHandlesByHashCode
;
124
_scavengeThreshold =
_weakHandlesByHashCode
.Count * 2;
130
_count =
_weakHandlesByHashCode
.Count;
146
foreach (KeyValuePair<int, StringWeakHandle> entry in
_weakHandlesByHashCode
)
149
if (!entry.Value.IsUsed &&
_weakHandlesByHashCode
.TryRemove(entry.Key, out StringWeakHandle? removedHandle))
155
if (!removedHandle.IsUsed || !
_weakHandlesByHashCode
.TryAdd(entry.Key, removedHandle))
WeakStringCache.cs (3)
111
foreach (KeyValuePair<int, StringWeakHandle> entry in
_weakHandlesByHashCode
)
117
_weakHandlesByHashCode
.Clear();
132
foreach (KeyValuePair<int, StringWeakHandle> entry in
_weakHandlesByHashCode
)