19 references to Allocate
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (19)
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
100
return s_staticPool.
Allocate
();
src\Compilers\Core\Portable\InternalUtilities\TextKeyedCache.cs (1)
94
return s_staticPool.
Allocate
();
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
462
var builder = s_poolInstance.
Allocate
();
src\Dependencies\PooledObjects\PooledDelegates.cs (1)
27
var obj = DefaultDelegatePool<TPooled>.Instance.
Allocate
();
src\Dependencies\PooledObjects\PooledDictionary.cs (1)
52
var instance = s_poolInstance.
Allocate
();
src\Dependencies\PooledObjects\PooledHashSet.cs (1)
41
var instance = s_poolInstance.
Allocate
();
src\Dependencies\PooledObjects\PooledStringBuilder.cs (1)
90
var builder = s_poolInstance.
Allocate
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (10)
91
=> new(pool, p => p.
Allocate
(), (p, o) => p.Free(o));
95
var sb = pool.
Allocate
();
103
var set = pool.
Allocate
();
111
var set = pool.
Allocate
();
119
var set = pool.
Allocate
();
127
var set = pool.
Allocate
();
135
var set = pool.
Allocate
();
144
var map = pool.
Allocate
();
152
var list = pool.
Allocate
();
160
var list = pool.
Allocate
();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (2)
46
var chunk = SharedPools.ByteArray.
Allocate
();
314
var chunk = SharedPools.ByteArray.
Allocate
();