14 references to DefaultPool
Microsoft.AspNetCore.Razor.Utilities.Shared (2)
PooledObjects\CustomObjectPool`1.cs (2)
9
protected const int DefaultPoolSize =
DefaultPool
.DefaultPoolSize;
10
protected const int DefaultMaximumObjectSize =
DefaultPool
.DefaultMaximumObjectSize;
Microsoft.CodeAnalysis.Razor.Compiler (12)
Language\AllowedChildTagDescriptorBuilder_Pooling.cs (1)
11
DefaultPool
.Create(static () => new AllowedChildTagDescriptorBuilder());
Language\BoundAttributeDescriptorBuilder_Pooling.cs (1)
11
DefaultPool
.Create(static () => new BoundAttributeDescriptorBuilder());
Language\BoundAttributeParameterDescriptorBuilder_Pooling.cs (1)
11
DefaultPool
.Create(static () => new BoundAttributeParameterDescriptorBuilder());
Language\DefaultRazorTagHelperContextDiscoveryPhase_Pooling.cs (2)
12
private static readonly ObjectPool<TagHelperDirectiveVisitor> s_tagHelperDirectiveVisitorPool =
DefaultPool
.Create<TagHelperDirectiveVisitor>();
13
private static readonly ObjectPool<ComponentDirectiveVisitor> s_componentDirectiveVisitorPool =
DefaultPool
.Create<ComponentDirectiveVisitor>();
Language\Legacy\ClassifiedSpanVisitor.cs (2)
15
public const int MaximumObjectSize =
DefaultPool
.DefaultMaximumObjectSize * 32;
17
private static readonly ObjectPool<ClassifiedSpanVisitor> Pool =
DefaultPool
.Create(static () => new ClassifiedSpanVisitor(), poolSize: 5);
Language\Legacy\LegacySyntaxNodeExtensions.ChildSyntaxListReversedEnumeratorStack.cs (1)
22
private static readonly ObjectPool<ChildSyntaxList.Reversed.Enumerator[]> s_stackPool =
DefaultPool
.Create(Policy.Instance);
Language\RequiredAttributeDescriptorBuilder_Pooling.cs (1)
11
DefaultPool
.Create(static () => new RequiredAttributeDescriptorBuilder());
Language\Syntax\SyntaxNode.Iterators.cs (1)
96
private static readonly ObjectPool<ChildSyntaxList.Enumerator[]> StackPool =
DefaultPool
.Create(Policy.Instance);
Language\TagHelperDescriptorBuilder_Pooling.cs (1)
12
DefaultPool
.Create(static () => new TagHelperDescriptorBuilder());
Language\TagMatchingRuleDescriptorBuilder_Pooling.cs (1)
11
DefaultPool
.Create(static () => new TagMatchingRuleDescriptorBuilder());