dmalloc
dmalloc copied to clipboard
Debug Malloc memory allocation debugging C library
since table_find always compare the pointer value not the string it point to
since it's not good to assume the table size double MEMORY_TABLE_SIZE
The key idea is supporting %pV format like printk: https://www.kernel.org/doc/html/latest/core-api/printk-formats.html
regressed by: commit 45c743960369d5a2cf5fe1219f773ceb31d19108 Author: Gray Watson Date: Sun Apr 18 23:39:56 2021 -0400 fixed bug in log-path extracting from env
since read_rc_file always use token regardless pass or fail
otherwise the mutex lock may be skipped unexpectedly
but include THREAD_INCLUDE instead just like chunk_loc.h, lose after meging https://github.com/j256/dmalloc/pull/59:(