| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Implemented enough of split to get basic free
list reuse working. Also updated the allocate()
function to return the output of split when it is
called.
|
| | |
|
| |
|
|
|
| |
I wasn't setting the size of the free list node
correctly due to an operating precedence mixup.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
My initial free list implementation revealed a
bug that I wasn't handling release(NULL) correctly,
resulting in a segfault.
After this commit, all existing tests pass for
liballoc.
|
| |
|
|
|
| |
Implemented (but haven't tested) adding nodes
to the free list and coalescing them.
|
| |
|
|
|
|
|
|
|
|
| |
I realized my existing interface wouldn't work
if the coalescing or adding of a new node replaced
the head of the list, as there was no way to
communicate that back to the caller. As a result,
I've updated those interfaces to accept a pointer
to the free list head pointer. This will let them
change the free list head in alloc.c if necessary.
|
| | |
|
| | |
|
| |
|