[][src]Module swim_mem::alloc

Dynamic memory allocators and operators.

Structs

AddrSpace

Reference counted smart pointer to an ExtentList.

AllocTag

Back-pointer to the Hold that allocated a block. An AllocTag immediately precedes every memory block allocated by a Hold.

ExtentList

Lock-free allocator of page-aligned memory extents from some address range.

HoldScope

Linked list of Hold references representing a stack of memory allocation contexts.

LocalHold

RAII HoldScope frame representing an entry in the thread local Hold memory allocator stack.

Pack

Linear allocator for a fixed-size memory block.

Pool

Linear allocator for a dynamically growable set of memory blocks.

Slab

Allocator for a hunk of memory partitioned into fixed size memory blocks.

Enums

HeapError

Heap memory allocation error.

HoldError

Hold memory allocation error.

Traits

CloneIntoHold

Clone into a specific allocation Hold.

Heap

Allocator for large memory blocks.

Hold

Limited lifetime memory allocator.

Holder

An object allocated by a Hold.

Stow

A type that can be recursively moved into a Hold.

StowFrom

Conversion from a value to Self, allocating in a Hold as needed.

StowInto

Conversion from Self into a value, allocating in a Hold as needed.

TryClone

Failable clone.