1 write to _blocks
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (1)
39_blocks = new HashSet<DiagnosticPoolBlock>();
9 references to _blocks
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (9)
src\Shared\Buffers.MemoryPool\DiagnosticMemoryPool.cs (9)
62_blocks.Add(diagnosticPoolBlock); 74_blocks.Remove(block); 75returnedAllBlocks = _blocks.Count == 0; 113allBlocksReturned = _blocks.Count == 0; 116MemoryPoolThrowHelper.ThrowInvalidOperationException_DisposingPoolWithActiveBlocks(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray()); 158MemoryPoolThrowHelper.ThrowInvalidOperationException_BlocksWereNotReturnedInTime(_totalBlocks - _blocks.Count, _totalBlocks, _blocks.ToArray()); 168foreach (var block in _blocks)