2 instantiations of StringTable
Microsoft.CodeAnalysis (2)
InternalUtilities\StringTable.cs (1)
90var pool = new ObjectPool<StringTable>(pool => new StringTable(pool), Environment.ProcessorCount * 2);
InternalUtilities\TextKeyedCache.cs (1)
78_strings = new StringTable();
14 references to StringTable
Microsoft.CodeAnalysis (12)
InternalUtilities\StringTable.cs (8)
80private StringTable(ObjectPool<StringTable>? pool) 85private readonly ObjectPool<StringTable>? _pool; 86private static readonly ObjectPool<StringTable> s_staticPool = CreatePool(); 88private static ObjectPool<StringTable> CreatePool() 90var pool = new ObjectPool<StringTable>(pool => new StringTable(pool), Environment.ProcessorCount * 2); 94public static StringTable GetInstance() 175if (StringTable.TextEquals(result, chars)) 476return Interlocked.Increment(ref StringTable.s_sharedRandom);
InternalUtilities\TextKeyedCache.cs (3)
61private readonly StringTable _strings; 123if (StringTable.TextEquals(text, chars)) 160if (hash == hashCode && StringTable.TextEquals(e.Text, chars))
MetadataReader\PEModule.cs (1)
4031return StringTable.AddSharedUtf8(new ReadOnlySpan<byte>(bytes, byteCount));
Microsoft.CodeAnalysis.CSharp (2)
Parser\SlidingTextWindow.cs (2)
103private readonly StringTable _strings; 109_strings = StringTable.GetInstance();