adding prev to HeapHeader to allow backwards coalescing.
This commit is contained in:
parent
8226764dea
commit
de312ee5fa
2 changed files with 41 additions and 17 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue