2 instantiations of StringTable
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
90
var 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)
80
private StringTable(ObjectPool<
StringTable
>? pool)
85
private readonly ObjectPool<
StringTable
>? _pool;
86
private static readonly ObjectPool<
StringTable
> s_staticPool = CreatePool();
88
private static ObjectPool<
StringTable
> CreatePool()
90
var pool = new ObjectPool<
StringTable
>(pool => new StringTable(pool), Environment.ProcessorCount * 2);
94
public static
StringTable
GetInstance()
175
if (
StringTable
.TextEquals(result, chars))
476
return Interlocked.Increment(ref
StringTable
.s_sharedRandom);
src\Compilers\Core\Portable\InternalUtilities\TextKeyedCache.cs (3)
61
private readonly
StringTable
_strings;
123
if (
StringTable
.TextEquals(text, chars))
160
if (hash == hashCode &&
StringTable
.TextEquals(e.Text, chars))