| 42 | #define MSTAT_UNLOCK thread_mutex_unlock(&__fastmutex_stat) |
| 43 | |
| 44 | int *acl_memory_debug_start(void) |
| 45 | { |
| 46 | int *ptr; |
| 47 | ptr = calloc(__alloc_max, sizeof(int)); |
| 48 | __alloc_stat = ptr; |
| 49 | acl_assert(__alloc_stat); |
| 50 | thread_mutex_init(&__fastmutex_stat, NULL); |
| 51 | __debug_mem = 1; |
| 52 | return ptr; |
| 53 | } |
| 54 | |
| 55 | void acl_memory_debug_stop(void) |
| 56 | { |
searching dependent graphs…