6 references to ObjectPool
Roslyn.Diagnostics.Analyzers (6)
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\ArrayBuilder.cs (1)
367
pool = new
ObjectPool
<ArrayBuilder<T>>(() => new ArrayBuilder<T>(pool), size);
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\ObjectPool.cs (1)
112
:
this
(factory, Environment.ProcessorCount * 2)
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
57
pool = new
ObjectPool
<PooledConcurrentDictionary<K, V>>(() =>
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
89
pool = new
ObjectPool
<PooledDictionary<K, V>>(() => new PooledDictionary<K, V>(pool, keyComparer), 128);
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledHashSet.cs (1)
70
pool = new
ObjectPool
<PooledHashSet<T>>(() => new PooledHashSet<T>(pool, comparer), 128);
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
51
pool = new
ObjectPool
<PooledSortedSet<T>>(