diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2020-11-22 12:41:07 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2020-11-22 12:41:07 -0700 |
commit | ca6957820c5dd156e313161b75f37afc85a57b1d (patch) | |
tree | a10893860994cf552205b63dce5a73c02cc191c4 /02-usart/include/kern/mem.h | |
parent | 073bd3550bef184924c9655a9ce1bb339a84aae3 (diff) | |
download | stm32l4-ca6957820c5dd156e313161b75f37afc85a57b1d.tar.gz stm32l4-ca6957820c5dd156e313161b75f37afc85a57b1d.tar.bz2 stm32l4-ca6957820c5dd156e313161b75f37afc85a57b1d.zip |
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.
Diffstat (limited to '02-usart/include/kern/mem.h')
-rw-r--r-- | 02-usart/include/kern/mem.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 |