[−][src]Crate slabmalloc
A slab allocator implementation for small objects (< architecture page size).
The organization is as follows (top-down):
- A
ZoneAllocatormanages manySCAllocatorand can satisfy requests for different allocation sizes. - A
SCAllocatorallocates objects of exactly one size. It holds its data in a PageList. - A trailt
AllocablePagethat defines the method a page from which we allocate needs. - A
ObjectPagethat is 4 KiB and can contain allocated objects and associated meta-data. - A
LargeObjectPagethat is 2 MiB and can contain allocated objects and associated meta-data.
Structs
| LargeObjectPage | Holds allocated data within a 2 MiB page. |
| ObjectPage | Holds allocated data within a 4 KiB page. |
| Rawlink | Rawlink is a type like Option |
| SCAllocator | A slab allocator allocates elements of a fixed size. |
| SafeZoneAllocator | |
| ZoneAllocator | A zone allocator. |
Enums
| AllocationError |
Traits
| AllocablePage |