MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_memory_debug_start

Function acl_memory_debug_start

lib_acl/src/stdlib/memory/acl_malloc_glue.c:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42#define MSTAT_UNLOCK thread_mutex_unlock(&__fastmutex_stat)
43
44int *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
55void acl_memory_debug_stop(void)
56{

Callers 10

test_fatal_mallocFunction · 0.85
test_fatal_freeFunction · 0.85
slice_gcFunction · 0.85
mainFunction · 0.85
service_initFunction · 0.85
http_plugin_debug_memoryFunction · 0.85
http_plugin_debug_memoryFunction · 0.85
http_plugin_initFunction · 0.85
module_service_initFunction · 0.85
service_initFunction · 0.85

Calls 2

callocFunction · 0.85
thread_mutex_initFunction · 0.85

Tested by 2

test_fatal_mallocFunction · 0.68
test_fatal_freeFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…