Expand description
Various allocator algorithms in a unified interface.
There are three types of allocators:
ByteAllocator
: Byte-granularity memory allocator. (e.g.,BuddyByteAllocator
,SlabByteAllocator
)PageAllocator
: Page-granularity memory allocator. (e.g.,BitmapPageAllocator
)IdAllocator
: Used to allocate unique IDs.
Structs
- A byte-allocator wrapped in
Rc<RefCell>
that implementscore::alloc::Allocator
. - A page-granularity memory allocator based on the bitmap_allocator.
- A byte-granularity memory allocator based on the buddy_system_allocator.
- A byte-granularity memory allocator based on the slab allocator.
- A TLSF (Two-Level Segregated Fit) memory allocator.
Enums
- The error type used for allocation.
Traits
- The base allocator inherited by other allocators.
- Byte-granularity allocator.
- Used to allocate unique IDs (e.g., thread ID).
- Page-granularity allocator.
Type Aliases
- A
Result
type withAllocError
as the error type.