2 instantiations of ObjectPool
System.Reflection.Metadata (2)
System\Reflection\Internal\Utilities\PooledStringBuilder.cs (1)
60
pool = new
ObjectPool
<PooledStringBuilder>(() => new PooledStringBuilder(pool!), 32);
System\Reflection\Metadata\PooledBlobBuilder.cs (1)
13
private static readonly ObjectPool<PooledBlobBuilder> s_chunkPool = new
ObjectPool
<PooledBlobBuilder>(() => new PooledBlobBuilder(ChunkSize), PoolSize);
6 references to ObjectPool
System.Reflection.Metadata (6)
System\Reflection\Internal\Utilities\PooledStringBuilder.cs (5)
20
private readonly
ObjectPool
<PooledStringBuilder> _pool;
22
private PooledStringBuilder(
ObjectPool
<PooledStringBuilder> pool)
54
private static readonly
ObjectPool
<PooledStringBuilder> s_poolInstance = CreatePool();
57
public static
ObjectPool
<PooledStringBuilder> CreatePool()
59
ObjectPool
<PooledStringBuilder>? pool = null;
System\Reflection\Metadata\PooledBlobBuilder.cs (1)
13
private static readonly
ObjectPool
<PooledBlobBuilder> s_chunkPool = new ObjectPool<PooledBlobBuilder>(() => new PooledBlobBuilder(ChunkSize), PoolSize);