2 instantiations of StringTable
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
94var pool = new ObjectPool<StringTable>(pool => new StringTable(pool), Environment.ProcessorCount * 2);
src\Compilers\Core\Portable\InternalUtilities\TextKeyedCache.cs (1)
78_strings = new StringTable();
13 references to StringTable
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (13)
src\Compilers\Core\Portable\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);
src\Compilers\Core\Portable\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)))