2 instantiations of PinnedBlockMemoryPool
Microsoft.AspNetCore.Server.HttpSys (2)
src\Shared\Buffers.MemoryPool\DefaultMemoryPoolFactory.cs (1)
49
var pool = new
PinnedBlockMemoryPool
(options?.Owner, _metrics, _logger);
src\Shared\Buffers.MemoryPool\MemoryPoolFactory.cs (1)
24
return new
PinnedBlockMemoryPool
(owner: owner, metrics: meterFactory != null ? new MemoryPoolMetrics(meterFactory) : null);
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(options?.Owner, _metrics, _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)
62
private Action<object?,
PinnedBlockMemoryPool
>? _onPoolDisposed;
83
public void OnPoolDisposed(Action<object?,
PinnedBlockMemoryPool
> onPoolDisposed, object? state = null)