5 references to ObjectPool
Microsoft.CodeAnalysis (4)
Collections\CachingFactory.cs (1)
198
var pool = new
ObjectPool
<CachingIdentityFactory<TKey, TValue>>(
Collections\OrderPreservingMultiDictionary.cs (1)
60
var pool = new
ObjectPool
<OrderPreservingMultiDictionary<K, V>>(
InternalUtilities\StringTable.cs (1)
90
var pool = new
ObjectPool
<StringTable>(pool => new StringTable(pool), Environment.ProcessorCount * 2);
InternalUtilities\TextKeyedCache.cs (1)
86
var pool = new
ObjectPool
<TextKeyedCache<T>>(
Microsoft.CodeAnalysis.CSharp (1)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
18
private static readonly ObjectPool<SymbolDisplayVisitor> s_visitorPool = new
ObjectPool
<SymbolDisplayVisitor>(pool => new SymbolDisplayVisitor(pool), 128);