mirror of
https://github.com/openharmony/third_party_mimalloc.git
synced 2026-07-19 20:53:36 -04:00
Merge pull request #517 from tiran/debug-uninit
Allow overrides of MI_DEBUG memory constants
This commit is contained in:
@@ -393,9 +393,15 @@ struct mi_heap_s {
|
||||
// Debug
|
||||
// ------------------------------------------------------
|
||||
|
||||
#if !defined(MI_DEBUG_UNINIT)
|
||||
#define MI_DEBUG_UNINIT (0xD0)
|
||||
#endif
|
||||
#if !defined(MI_DEBUG_FREED)
|
||||
#define MI_DEBUG_FREED (0xDF)
|
||||
#endif
|
||||
#if !defined(MI_DEBUG_PADDING)
|
||||
#define MI_DEBUG_PADDING (0xDE)
|
||||
#endif
|
||||
|
||||
#if (MI_DEBUG)
|
||||
// use our own assertion to print without memory allocation
|
||||
|
||||
Reference in New Issue
Block a user