diff options
author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-19 05:15:59 +0100 |
---|---|---|
committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-19 05:15:59 +0100 |
commit | c84113a819434b51dcb510023bc484cf65782290 (patch) | |
tree | 197e5aa824487a515aa6fe41825f075e64c8d28f | |
parent | 1bdc18bb6397efddbdab99f7aa57f6cf07f1beb0 (diff) | |
download | cuddles-c84113a819434b51dcb510023bc484cf65782290.tar.xz |
remove defragment
-rw-r--r-- | stage3/heap.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/stage3/heap.c b/stage3/heap.c index c9e7edb..71bbf7d 100644 --- a/stage3/heap.c +++ b/stage3/heap.c @@ -25,12 +25,6 @@ void free(void *ptr) h->next = next; } -static void defragment() -{ - //usize num_blocks = 0; - panic(S("defragment not implemented")); -} - void *try_malloc(usize size) { for (Header *prev = free_ptr;; prev = prev->next) { @@ -64,10 +58,6 @@ void *malloc(usize size) { void *p; - // p = try_malloc(size); - // if (p) return p; - // defragment(); - p = try_malloc(size); if (p) return p; panic(S("out of memory")); |