2 instantiations of StringTable
Microsoft.CodeAnalysis (2)
InternalUtilities\StringTable.cs (1)
94
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 (14)
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);
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)))
MetadataReader\PEModule.cs (1)
3994
return
StringTable
.AddSharedUtf8(new ReadOnlySpan<byte>(bytes, byteCount));