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