2 instantiations of PinnedBlockMemoryPool
Microsoft.AspNetCore.Server.HttpSys (2)
src\Shared\Buffers.MemoryPool\DefaultMemoryPoolFactory.cs (1)
49
var pool = new
PinnedBlockMemoryPool
(_meterFactory, _logger);
src\Shared\Buffers.MemoryPool\MemoryPoolFactory.cs (1)
24
return new
PinnedBlockMemoryPool
(meterFactory);
9 references to PinnedBlockMemoryPool
Microsoft.AspNetCore.Server.HttpSys (9)
src\Shared\Buffers.MemoryPool\DefaultMemoryPoolFactory.cs (5)
18
private readonly ConcurrentDictionary<
PinnedBlockMemoryPool
, bool> _pools = new();
27
_timer = new PeriodicTimer(
PinnedBlockMemoryPool
.DefaultEvictionDelay);
34
foreach (
var
pool in _pools.Keys)
49
var
pool = new PinnedBlockMemoryPool(_meterFactory, _logger);
55
((ConcurrentDictionary<
PinnedBlockMemoryPool
, bool>)state!).TryRemove(self, out _);
src\Shared\Buffers.MemoryPool\MemoryPoolBlock.cs (2)
14
internal MemoryPoolBlock(
PinnedBlockMemoryPool
pool, int length)
26
public
PinnedBlockMemoryPool
Pool { get; }
src\Shared\Buffers.MemoryPool\PinnedBlockMemoryPool.cs (2)
63
private Action<object?,
PinnedBlockMemoryPool
>? _onPoolDisposed;
80
public void OnPoolDisposed(Action<object?,
PinnedBlockMemoryPool
> onPoolDisposed, object? state = null)