Skip to main content

Module slab

Module slab 

Source
Expand description

Slab-backed allocation and recycling for FBuf.

This module keeps a small set of per-size-class freelists for power-of-two FBuf capacities. Allocations that do not fit a slab size class fall back to direct allocation and deallocation.

Structs§

FBufSlabStatsSnapshot
Snapshot of one slab size class.
FBufSlabs
Power-of-two free lists for recycling FBuf allocations.
FBufSlabsStats
Snapshot of an FBufSlabs.

Statics§

TOKIO_FBUF_SLABS
Per-task override for the active FBuf slab set.

Functions§

set_thread_slab_pool
Installs a slab pool for the current thread and returns the previous one.