3 references to ObjectPool
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (3)
src\Dependencies\PooledObjects\ObjectPool`1.cs (1)
110
:
this
(factory, Environment.ProcessorCount * 2, trimOnFree)
src\Dependencies\PooledObjects\PooledStringBuilder.cs (1)
83
pool = new
ObjectPool
<PooledStringBuilder>(() => new PooledStringBuilder(pool!), size);
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\ArrayBuilder.cs (1)
19
private static readonly ObjectPool<ArrayBuilder<T>> s_poolInstance = new
ObjectPool
<ArrayBuilder<T>>(() => new ArrayBuilder<T>(), 16);