46 references to Free
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (46)
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
51
_pool?.
Free
(this);
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
109
_pool?.
Free
(this);
src\Dependencies\PooledObjects\ArrayBuilder.cs (2)
477
pool.
Free
(this);
975
_pool?.
Free
(this);
src\Dependencies\PooledObjects\PooledDelegates.cs (1)
377
DefaultDelegatePool<TSelf>.Instance.
Free
((TSelf)this);
src\Dependencies\PooledObjects\PooledDictionary.cs (1)
41
_pool?.
Free
(this);
src\Dependencies\PooledObjects\PooledHashSet.cs (1)
30
_pool?.
Free
(this);
src\Dependencies\PooledObjects\PooledStringBuilder.cs (2)
47
_pool.
Free
(this);
130
_pool.
Free
(this);
src\RoslynAnalyzers\Utilities\Compiler\Extensions\PooledHashSetExtensions.cs (1)
40
_pool?.
Free
(this);
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledConcurrentDictionary.cs (1)
47
_pool?.
Free
(this);
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledDictionary.cs (1)
34
_pool?.
Free
(this);
src\RoslynAnalyzers\Utilities\Compiler\PooledObjects\PooledSortedSet.cs (1)
42
_pool?.
Free
(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
38
s_pool.
Free
(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
47
s_visitorPool.
Free
(visitor);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\NodeOperations.cs (4)
36
s_indentBlockOperationPool.
Free
(IndentBlockOperation);
39
s_suppressOperationPool.
Free
(SuppressOperation);
42
s_alignTokensOperationPool.
Free
(AlignmentOperation);
45
s_anchorIndentationOperationPool.
Free
(AnchorIndentationOperations);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
76
pool.
Free
(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\LogMessage.cs (6)
87
s_pool.
Free
(this);
117
s_pool.
Free
(this);
150
s_pool.
Free
(this);
186
s_pool.
Free
(this);
225
s_pool.
Free
(this);
267
s_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\Serialization\ObjectReader.ReaderReferenceMap.cs (1)
32
s_objectListPool.
Free
(_values);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.WriterReferenceMap.cs (1)
41
s_valueDictionaryPool.
Free
(_valueToIdMap);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
353
s_readerPool.
Free
(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
94
s_writerPool.
Free
(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\EditDistance.cs (1)
75
s_pool.
Free
(_sourceLowerCaseCharacters);
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]);