10 references to PooledObject
Microsoft.CodeAnalysis.Workspaces (10)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (1)
91
=>
new
(pool, p => p.Allocate(), (p, o) => p.Free(o));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\PooledObject.cs (8)
43
return new
PooledObject
<StringBuilder>(
51
return new
PooledObject
<Stack<TItem>>(
59
return new
PooledObject
<Queue<TItem>>(
67
return new
PooledObject
<HashSet<TItem>>(
75
return new
PooledObject
<ConcurrentSet<TItem>>(
84
return new
PooledObject
<Dictionary<TKey, TValue>>(
92
return new
PooledObject
<List<TItem>>(
100
return new
PooledObject
<SegmentedList<TItem>>(
Utilities\SegmentedListPool.cs (1)
13
var pooledObject = new
PooledObject
<SegmentedList<T>>(