22 references to Free
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (22)
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
109_pool?.Free(this);
src\Compilers\Core\Portable\InternalUtilities\TextKeyedCache.cs (1)
103_pool?.Free(this);
src\Dependencies\PooledObjects\ArrayBuilder.cs (1)
447pool.Free(this);
src\Dependencies\PooledObjects\PooledDelegates.cs (1)
375DefaultDelegatePool<TSelf>.Instance.Free((TSelf)this);
src\Dependencies\PooledObjects\PooledDictionary.cs (1)
36_pool?.Free(this);
src\Dependencies\PooledObjects\PooledHashSet.cs (1)
25_pool?.Free(this);
src\Dependencies\PooledObjects\PooledStringBuilder.cs (1)
42_pool.Free(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\ObjectPools\Extensions.cs (12)
91=> new(pool, p => p.Allocate(), (p, o) => p.Free(o)); 180pool.Free(sb); 198pool.Free(set); 216pool.Free(set); 232pool.Free(set); 246pool.Free(stack); 262pool.Free(stack); 280pool.Free(set); 299pool.Free(map); 316pool.Free(map); 333pool.Free(list); 350pool.Free(list);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (3)
85SharedPools.ByteArray.Free(chunks[c]); 261SharedPools.ByteArray.Free(chunk); 342SharedPools.ByteArray.Free(chunks[i]);