dmalloc
dmalloc copied to clipboard
Debug Malloc memory allocation debugging C library
The original assembly used suspicious syntax. However, due to the !defined(__OPTIMIZE__) guard this code was rarely built. There nothing to stop the compiler using r0 between the two asm blocks,...
[Retrieved (and slightly updated to patch configure.ac instead of configure) from: https://git.buildroot.net/buildroot/tree/package/dmalloc/0002-mips.patch]
1.Avoid to allocate the big buffer on the caller stack 2.The temporary buffer is only used on cygwin
by switching to free_wait_list_head directly
The final result should be same as before
since the same thing is already done in _dmalloc_chunk_log_changed
and make update_p optional in find_[address|free_size] to save the memory