A "strict" segregated-fits collection of (homogeneous) heaps. More...
#include <segheap.h>
A "strict" segregated-fits collection of (homogeneous) heaps.
One extra heap is used for objects that are "too big". Unlike SegHeap, StrictSegHeap does not perform splitting to satisfy memory requests. If no memory is available from the appropriate bin, malloc returns NULL.
NumBins | The number of bins (subheaps). | |
getSizeClass | Function to compute size class from size. | |
getClassMaxSize | Function to compute the largest size for a given size class. | |
LittleHeap | The subheap class. | |
BigHeap | The parent class, used for "big" objects. |