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)
447
pool.
Free
(this);
src\Dependencies\PooledObjects\PooledDelegates.cs (1)
375
DefaultDelegatePool<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));
180
pool.
Free
(sb);
198
pool.
Free
(set);
216
pool.
Free
(set);
232
pool.
Free
(set);
246
pool.
Free
(stack);
262
pool.
Free
(stack);
280
pool.
Free
(set);
299
pool.
Free
(map);
316
pool.
Free
(map);
333
pool.
Free
(list);
350
pool.
Free
(list);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (3)
85
SharedPools.ByteArray.
Free
(chunks[c]);
261
SharedPools.ByteArray.
Free
(chunk);
342
SharedPools.ByteArray.
Free
(chunks[i]);