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)
68ConcurrentDictionary<int, StringWeakHandle> weakHandlesByHashCode = _weakHandlesByHashCode; 124_scavengeThreshold = _weakHandlesByHashCode.Count * 2; 130_count = _weakHandlesByHashCode.Count; 146foreach (KeyValuePair<int, StringWeakHandle> entry in _weakHandlesByHashCode) 149if (!entry.Value.IsUsed && _weakHandlesByHashCode.TryRemove(entry.Key, out StringWeakHandle? removedHandle)) 155if (!removedHandle.IsUsed || !_weakHandlesByHashCode.TryAdd(entry.Key, removedHandle))
WeakStringCache.cs (3)
111foreach (KeyValuePair<int, StringWeakHandle> entry in _weakHandlesByHashCode) 117_weakHandlesByHashCode.Clear(); 132foreach (KeyValuePair<int, StringWeakHandle> entry in _weakHandlesByHashCode)