Crate slabmalloc [] [src]

A slab allocator implementation for small objects (< architecture page size).

The organization is as follows (top-down):

  • A ZoneAllocator manages many SlabAllocator and can satisfy requests for different allocation sizes.
  • A SlabAllocator allocates objects of exactly one size. It holds its data in a SlabList.
  • A SlabPage contains allocated objects and associated meta-data.
  • A SlabPageProvider is provided by the client and used by the SlabAllocator to allocate SlabPages.

Structs

SlabAllocator

A slab allocator allocates elements of a fixed size.

SlabPage

Holds allocated data.

ZoneAllocator

A zone allocator.

Traits

SlabPageProvider

The memory backing as used by the SlabAllocator.