Function multiple_heaps::init_individual_heap
source · pub fn init_individual_heap(
key: usize,
multiple_heaps: &mut MultipleHeaps
) -> Result<(), &'static str>
Expand description
Initializes the heap given by key
.
There are 11 size classes in each heap ranging from [8,16,32,64 ..ZoneAllocator::MAX_ALLOC_SIZE
].
We evenly distribute the pages allocated for each heap between the size classes.