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