Tweaks to previous commit affecting debug reports of our guarded allocator.

Somehow missed these tweaks (from @LazyDodo) in own recent 2e79ca3205
commit, sorry for the noise.
This commit is contained in:
Bastien Montagne
2023-08-10 14:52:18 +02:00
parent 2e79ca3205
commit bcc0b9f73f

View File

@@ -40,14 +40,16 @@
//#define DEBUG_MEMCOUNTER
/* Only for debugging:
* Defining DEBUG_BACKTRACE will store a backtrace from where
* memory block was allocated and print this trace for all
* unfreed blocks.
* Defining DEBUG_BACKTRACE will display a backtrace from where memory block was allocated and
* print this trace for all unfreed blocks. This will only work for ASAN enabled builds. This
* option will be on by default for MSVC as it currently does not have LSAN which would normally
* report these leaks, off by default on all other platforms because it would report the leaks
* twice, once here, and once by LSAN.
*/
#if defined(_MSC_VER)
# define DEBUG_BACKTRACE
#else
//#define DEBUG_BACKTRACE
#ifdef DEBUG_BACKTRACE
# define BACKTRACE_SIZE 100
#endif
#ifdef DEBUG_MEMCOUNTER