2 instantiations of StringTable
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
90var pool = new ObjectPool<StringTable>(pool => new StringTable(pool), Environment.ProcessorCount * 2);
src\Compilers\Core\Portable\InternalUtilities\TextKeyedCache.cs (1)
78_strings = new StringTable();
11 references to StringTable
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (11)
src\Compilers\Core\Portable\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);
src\Compilers\Core\Portable\InternalUtilities\TextKeyedCache.cs (3)
61private readonly StringTable _strings; 123if (StringTable.TextEquals(text, chars)) 160if (hash == hashCode && StringTable.TextEquals(e.Text, chars))