2 instantiations of StringTable
Microsoft.CodeAnalysis (2)
InternalUtilities\StringTable.cs (1)
90
var pool = new ObjectPool<StringTable>(pool => new
StringTable
(pool), Environment.ProcessorCount * 2);
InternalUtilities\TextKeyedCache.cs (1)
78
_strings = new
StringTable
();
14 references to StringTable
Microsoft.CodeAnalysis (12)
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);
InternalUtilities\TextKeyedCache.cs (3)
61
private readonly
StringTable
_strings;
123
if (
StringTable
.TextEquals(text, chars))
160
if (hash == hashCode &&
StringTable
.TextEquals(e.Text, chars))
MetadataReader\PEModule.cs (1)
4031
return
StringTable
.AddSharedUtf8(new ReadOnlySpan<byte>(bytes, byteCount));
Microsoft.CodeAnalysis.CSharp (2)
Parser\SlidingTextWindow.cs (2)
103
private readonly
StringTable
_strings;
109
_strings =
StringTable
.GetInstance();