adding prev to HeapHeader to allow backwards coalescing.

This commit is contained in:
Liam Kerr 2026-02-09 15:33:11 +00:00
parent 8226764dea
commit de312ee5fa
2 changed files with 41 additions and 17 deletions

View file

@ -11,6 +11,7 @@ typedef struct HeapHeader {
size_t size;
int is_free;
struct HeapHeader *next;
struct HeapHeader *prev;
} HeapHeader;
static struct Page *free_list = NULL;