Static mnemos_alloc::heap::INHIBIT_ALLOC

source ยท
static INHIBIT_ALLOC: AtomicBool
Expand description

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