From ca6957820c5dd156e313161b75f37afc85a57b1d Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Sun, 22 Nov 2020 12:41:07 -0700 Subject: Fixed diasterous bug with hfree. Before this fix, hfree would neglect to set the prev pointer in the next used block and such was leaving the prev pointers invalid after coalescing frees. --- 02-usart/include/kern/mem.h | 2 ++ 1 file changed, 2 insertions(+) (limited to '02-usart/include/kern/mem.h') diff --git a/02-usart/include/kern/mem.h b/02-usart/include/kern/mem.h index d150744..c0999f5 100644 --- a/02-usart/include/kern/mem.h +++ b/02-usart/include/kern/mem.h @@ -24,6 +24,8 @@ void* debug_halloc_get_prev_ptr(void* ptr); int debug_halloc_assert_consistency(char* error, size_t len); +void debug_print_blocks(); + #endif -- cgit