faster backtrace; show predecessor blocks on block overflow

This commit is contained in:
Daan 2021-12-10 17:22:02 -08:00
parent 5739714b8d
commit 72ca23d14f
2 changed files with 9 additions and 7 deletions

View file

@ -61,7 +61,7 @@ terms of the MIT license. A copy of the license can be found in the file
#endif
#if !defined(MI_DEBUG_TRACE) // store stack trace at each allocation
#define MI_DEBUG_TRACE MI_DEBUG
#define MI_DEBUG_TRACE (0)
#endif
#if !defined(MI_DEBUG_TRACE_LEN)
@ -70,7 +70,7 @@ terms of the MIT license. A copy of the license can be found in the file
#if !defined(MI_PADDING_EXTRA) // use extra padding bytes? (so a stack trace can be preserved or next block corruption prevented)
#if MI_DEBUG_TRACE > 0
#define MI_PADDING_EXTRA (128)
#define MI_PADDING_EXTRA (64)
#else
#define MI_PADDING_EXTRA (0)
#endif