Changeset View
Changeset View
Standalone View
Standalone View
intern/guardedalloc/intern/mallocn_guarded_impl.c
| Show All 37 Lines | |||||
| //#define DEBUG_MEMCOUNTER | //#define DEBUG_MEMCOUNTER | ||||
| /* Only for debugging: | /* Only for debugging: | ||||
| * Defining DEBUG_BACKTRACE will store a backtrace from where | * Defining DEBUG_BACKTRACE will store a backtrace from where | ||||
| * memory block was allocated and print this trace for all | * memory block was allocated and print this trace for all | ||||
| * unfreed blocks. | * unfreed blocks. | ||||
| */ | */ | ||||
| //#define DEBUG_BACKTRACE | #define DEBUG_BACKTRACE | ||||
| #ifdef DEBUG_BACKTRACE | #ifdef DEBUG_BACKTRACE | ||||
| # define BACKTRACE_SIZE 100 | # define BACKTRACE_SIZE 100 | ||||
| #endif | #endif | ||||
| #ifdef DEBUG_MEMCOUNTER | #ifdef DEBUG_MEMCOUNTER | ||||
| /* set this to the value that isn't being freed */ | /* set this to the value that isn't being freed */ | ||||
| # define DEBUG_MEMCOUNTER_ERROR_VAL 0 | # define DEBUG_MEMCOUNTER_ERROR_VAL 0 | ||||
| ▲ Show 20 Lines • Show All 1,148 Lines • Show Last 20 Lines | |||||