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