2 instantiations of StringTable
Microsoft.CodeAnalysis (2)
InternalUtilities\StringTable.cs (1)
94var 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 (14)
InternalUtilities\StringTable.cs (10)
84private StringTable(ObjectPool<StringTable>? pool) 89private readonly ObjectPool<StringTable>? _pool; 90private static readonly ObjectPool<StringTable> s_staticPool = CreatePool(); 92private static ObjectPool<StringTable> CreatePool() 94var pool = new ObjectPool<StringTable>(pool => new StringTable(pool), Environment.ProcessorCount * 2); 98public static StringTable GetInstance() 128if (StringTable.TextEquals(result, span)) 162if (StringTable.TextEquals(result, chars, start, len)) 230if (StringTable.TextEquals(result, chars)) 672return Interlocked.Increment(ref StringTable.s_sharedRandom);
InternalUtilities\TextKeyedCache.cs (3)
61private readonly StringTable _strings; 117if (StringTable.TextEquals(text, chars.AsSpan(start, len))) 154if (hash == hashCode && StringTable.TextEquals(e.Text, chars.AsSpan(start, len)))
MetadataReader\PEModule.cs (1)
3994return StringTable.AddSharedUtf8(new ReadOnlySpan<byte>(bytes, byteCount));