54 references to Allocate
Microsoft.CodeAnalysis.Workspaces (54)
Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs (1)
53_pendingNodes = s_stackPool.Allocate();
Differencing\LongestCommonSubsequence.cs (1)
150_currentBuffer = _firstBuffer = bufferPool.Allocate();
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
564var pooledInstance = s_symbolSetPool.Allocate();
FindSymbols\FindReferences\MetadataUnifyingSymbolHashSet.cs (1)
19=> s_metadataUnifyingSymbolHashSetPool.Allocate();
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (2)
558var baseTypeNameParts = s_stringListPool.Allocate(); 800var node = s_pool.Allocate();
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (1)
22=> s_symbolMapPool.Allocate();
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (2)
49var stringLiterals = StringLiteralHashSetPool.Allocate(); 50var longLiterals = LongLiteralHashSetPool.Allocate();
LanguageServices\DeclaredSymbolFactoryService\AbstractDeclaredSymbolInfoFactoryService.cs (2)
89=> s_aliasMapListPool.Allocate(); 142=> s_aliasMapPool.Allocate();
Log\KeyValueLogMessage.cs (2)
30var logMessage = s_pool.Allocate(); 41var logMessage = s_pool.Allocate();
Shared\Extensions\SourceTextExtensions.cs (1)
269return s_charArrayPool.Allocate();
Shared\Utilities\XmlFragmentParser.cs (1)
41var instance = s_pool.Allocate();
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (1)
68var instance = s_poolInstance.Allocate();
src\Compilers\Core\Portable\InternalUtilities\StringTable.cs (1)
100return 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\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
35public static BasicBlockAnalysisData GetInstance() => s_pool.Allocate();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
41var visitor = s_visitorPool.Allocate();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\NodeOperations.cs (4)
24public SegmentedList<IndentBlockOperation> IndentBlockOperation { get; } = s_indentBlockOperationPool.Allocate(); 25public SegmentedList<SuppressOperation> SuppressOperation { get; } = s_suppressOperationPool.Allocate(); 26public SegmentedList<AlignTokensOperation> AlignmentOperation { get; } = s_alignTokensOperationPool.Allocate(); 27public SegmentedList<AnchorIndentationOperation> AnchorIndentationOperations { get; } = s_anchorIndentationOperationPool.Allocate();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (1)
23var block = s_pool.Allocate();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\LogMessage.cs (6)
65var logMessage = s_pool.Allocate(); 95var logMessage = s_pool.Allocate(); 126var logMessage = s_pool.Allocate(); 160var logMessage = s_pool.Allocate(); 197var logMessage = s_pool.Allocate(); 237var logMessage = s_pool.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\Serialization\ObjectReader.ReaderReferenceMap.cs (1)
27=> new(s_objectListPool.Allocate());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.WriterReferenceMap.cs (1)
26_valueToIdMap = s_valueDictionaryPool.Allocate();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
361var reader = s_readerPool.Allocate();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
100var visitor = s_writerPool.Allocate();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SerializableBytes.cs (2)
46var chunk = SharedPools.ByteArray.Allocate(); 314var chunk = SharedPools.ByteArray.Allocate();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractReducer.cs (1)
19=> _pool.Allocate();
Utilities\SegmentedListPool.cs (1)
17var result = p.Allocate();
Workspace\Solution\ProjectDependencyGraph.cs (1)
223builder = s_reverseReferencesBuilderPool.Allocate();