1 write to _weakHandlesByHashCode
Microsoft.NET.StringTools (1)
WeakStringCache.Concurrent.cs (1)
23
_weakHandlesByHashCode
= new ConcurrentDictionary<int, StringWeakHandle>(Environment.ProcessorCount, _initialCapacity);
9 references to _weakHandlesByHashCode
Microsoft.NET.StringTools (9)
WeakStringCache.Concurrent.cs (6)
44
ConcurrentDictionary<int, StringWeakHandle> stringsByHashCode = usingWeakHandle ?
_weakHandlesByHashCode
: _stringsByHashCode;
109
_scavengeThreshold =
_weakHandlesByHashCode
.Count * 2;
115
_count =
_weakHandlesByHashCode
.Count;
130
foreach (KeyValuePair<int, StringWeakHandle> entry in
_weakHandlesByHashCode
)
133
if (!entry.Value.IsUsed &&
_weakHandlesByHashCode
.TryRemove(entry.Key, out StringWeakHandle? removedHandle))
139
if (!removedHandle.IsUsed || !
_weakHandlesByHashCode
.TryAdd(entry.Key, removedHandle))
WeakStringCache.cs (3)
138
foreach (KeyValuePair<int, StringWeakHandle> entry in
_weakHandlesByHashCode
)
144
_weakHandlesByHashCode
.Clear();
159
foreach (KeyValuePair<int, StringWeakHandle> entry in
_weakHandlesByHashCode
)