Skip to content
Unverified Commit 13d88acc authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

Allocator improvements/clean ups (#4838)

* FreeingBumpAllocator: Initialize the heads to `u32::max_value()`

`self.heads` can point to an element with the index `0` in the heap.
This would make the allocator fail to reuse this element.

* Simplify the `PREFIX_SIZE` handling
parent 099cd0f2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment