1 instantiation of StringTable
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
94
var pool = new ObjectPool<StringTable>(pool => new
StringTable
(pool), Environment.ProcessorCount * 2);
10 references to StringTable
Microsoft.CodeAnalysis.CodeStyle (10)
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);