10 instantiations of DiagnosticMemoryPool
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
ConcurrentPipeWriterTests.cs (5)
21
using (var diagnosticPool = new
DiagnosticMemoryPool
(memoryPool))
84
using (var diagnosticPool = new
DiagnosticMemoryPool
(memoryPool))
182
using (var diagnosticPool = new
DiagnosticMemoryPool
(memoryPool))
266
using (var diagnosticPool = new
DiagnosticMemoryPool
(memoryPool))
334
using (var diagnosticPool = new
DiagnosticMemoryPool
(memoryPool))
DiagnosticMemoryPoolTests.cs (4)
14
protected override MemoryPool<byte> CreatePool() => new
DiagnosticMemoryPool
(new PinnedBlockMemoryPool());
179
var memoryPool = new
DiagnosticMemoryPool
(new PinnedBlockMemoryPool(), allowLateReturn: true);
189
var memoryPool = new
DiagnosticMemoryPool
(new PinnedBlockMemoryPool(), allowLateReturn: true);
205
var memoryPool = new
DiagnosticMemoryPool
(new PinnedBlockMemoryPool(), rentTracking: true);
src\Shared\Buffers.MemoryPool\MemoryPoolFactory.cs (1)
11
return new
DiagnosticMemoryPool
(CreatePinnedBlockMemoryPool());
10 references to DiagnosticMemoryPool
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
ConcurrentPipeWriterTests.cs (5)
21
using (
var
diagnosticPool = new DiagnosticMemoryPool(memoryPool))
84
using (
var
diagnosticPool = new DiagnosticMemoryPool(memoryPool))
182
using (
var
diagnosticPool = new DiagnosticMemoryPool(memoryPool))
266
using (
var
diagnosticPool = new DiagnosticMemoryPool(memoryPool))
334
using (
var
diagnosticPool = new DiagnosticMemoryPool(memoryPool))
DiagnosticMemoryPoolTests.cs (3)
179
var
memoryPool = new DiagnosticMemoryPool(new PinnedBlockMemoryPool(), allowLateReturn: true);
189
var
memoryPool = new DiagnosticMemoryPool(new PinnedBlockMemoryPool(), allowLateReturn: true);
205
var
memoryPool = new DiagnosticMemoryPool(new PinnedBlockMemoryPool(), rentTracking: true);
src\Shared\Buffers.MemoryPool\DiagnosticPoolBlock.cs (2)
20
private readonly
DiagnosticMemoryPool
_pool;
33
internal DiagnosticPoolBlock(
DiagnosticMemoryPool
pool, IMemoryOwner<byte> memoryOwner)