Crate slabmalloc [−] [src]
A slab allocator implementation for small objects (< architecture page size).
The organization is as follows (top-down):
- A
ZoneAllocatormanages manySlabAllocatorand can satisfy requests for different allocation sizes. - A
SlabAllocatorallocates objects of exactly one size. It holds its data in a SlabList. - A
SlabPagecontains allocated objects and associated meta-data. - A
SlabPageProvideris 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. |