56#ifndef __CWIST_CORE_MEM_INTERCEPT_H__
57#define __CWIST_CORE_MEM_INTERCEPT_H__
113#if defined(CWIST_INTERCEPT_MALLOC)
114#define malloc(sz) cwist_malloc_shim(sz)
115#define calloc(n, sz) cwist_calloc_shim((n), (sz))
116#define realloc(p, sz) cwist_realloc_shim((p), (sz))
117#define free(p) cwist_free_shim(p)
void * cwist_calloc_shim(size_t nmemb, size_t size)
calloc() replacement: real libc calloc() (zeroed), registered with the full-GC pending-sweep list whe...
void * cwist_realloc_shim(void *ptr, size_t size)
realloc() replacement. Tracking follows the incoming pointer: if ptr was tracked (shimmed-and-full-GC...
void cwist_free_shim(void *ptr)
free() replacement: untracks ptr first if it was tracked (safe no-op if it wasn't - same contract as ...
void * cwist_malloc_shim(size_t size)
malloc() replacement: real libc malloc() (uninitialized memory, exactly like malloc - unlike cwist_al...