1 instantiation of DiagnosticPoolBlock
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
56var diagnosticPoolBlock = new DiagnosticPoolBlock(this, _pool.Rent(size));
14 references to DiagnosticPoolBlock
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (14)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (5)
21private readonly HashSet<DiagnosticPoolBlock> _blocks; 39_blocks = new HashSet<DiagnosticPoolBlock>(); 56var diagnosticPoolBlock = new DiagnosticPoolBlock(this, _pool.Rent(size)); 69internal void Return(DiagnosticPoolBlock block) 168foreach (var block in _blocks)
src\Shared\Buffers.MemoryPool\MemoryPoolThrowHelper.cs (9)
30public static void ThrowInvalidOperationException_PinCountZero(DiagnosticPoolBlock block) 35public static void ThrowInvalidOperationException_ReturningPinnedBlock(DiagnosticPoolBlock block) 45public static void ThrowInvalidOperationException_BlockDoubleDispose(DiagnosticPoolBlock block) 50public static void ThrowInvalidOperationException_BlockReturnedToDisposedPool(DiagnosticPoolBlock block) 55public static void ThrowInvalidOperationException_BlockIsBackedByDisposedSlab(DiagnosticPoolBlock block) 60public static void ThrowInvalidOperationException_DisposingPoolWithActiveBlocks(int returned, int total, DiagnosticPoolBlock[] blocks) 65public static void ThrowInvalidOperationException_BlocksWereNotReturnedInTime(int returned, int total, DiagnosticPoolBlock[] blocks) 70private static string GenerateMessage(string message, params DiagnosticPoolBlock[] blocks) 73foreach (var diagnosticPoolBlock in blocks)