libmemalloc
v4.0.00
Modern Memory Allocator
|
Represents a memory arena with its own free lists. More...
#include <libmemalloc.h>
Public Attributes | |
size_t | num_bins |
block_header_t ** | bins |
block_header_t * | top_chunk |
Represents a memory arena with its own free lists.
This structure manages a group of free lists (bins) and tracks the top chunk in the heap for allocation strategies like top chunk extension. Each arena can hold multiple size classes to optimize allocation and minimize fragmentation.
block_header_t** mem_arena_t::bins |
Array of pointers to bin heads
size_t mem_arena_t::num_bins |
Number of bins in this arena
block_header_t* mem_arena_t::top_chunk |
Pointer to the top (wilderness) chunk