Module mnemos_alloc::heap
source · Expand description
The mnemos-alloc Heap types
Modules§
Structs§
- Mnemos Allocator
- A wrapper of linked_list_allocator::Heap that uses maitake::sync::Mutex.
- State
stats
A snapshot of the current state of the heap.
Enums§
- Errors returned by
MnemosAlloc::init
.
Statics§
- Flag to inhibit allocs. This ensures that allocations are served in a FIFO order, so if there are 50 bytes left, then we get a sequence of alloc requests like [64, 10, 30], none will be served until there is room for 64. This prevents large allocations from being starved, at the cost of delaying small allocations that could potentially succeed
- A WaitQueue for tasks that would like to allocate, but the allocator is currently in temporary OOM mode
Traits§
- “Underlying Allocator”“ Trait