Home
last modified time | relevance | path

Searched refs:g_dispatch (Results 1 – 4 of 4) sorted by relevance

/aosp12/bionic/libc/malloc_hooks/
H A Dmalloc_hooks.cpp42 const MallocDispatch* g_dispatch; variable
82 return g_dispatch->malloc(bytes); in default_malloc_hook()
86 return g_dispatch->realloc(pointer, bytes); in default_realloc_hook()
90 g_dispatch->free(pointer); in default_free_hook()
101 g_dispatch = malloc_dispatch; in hooks_initialize()
132 return g_dispatch->malloc(size); in hooks_malloc()
139 return g_dispatch->free(pointer); in hooks_free()
153 return g_dispatch->realloc(pointer, bytes); in hooks_realloc()
168 return g_dispatch->calloc(nmemb, bytes); in hooks_calloc()
172 return g_dispatch->mallinfo(); in hooks_mallinfo()
[all …]
/aosp12/bionic/libc/malloc_debug/
H A Dmalloc_debug.cpp68 const MallocDispatch* g_dispatch; variable
271 g_dispatch->free(orig_pointer); in InitHeader()
310 g_dispatch = malloc_dispatch; in debug_initialize()
400 g_dispatch->free(info); in debug_free_malloc_leak_info()
470 return g_dispatch->malloc(size); in debug_malloc()
538 g_dispatch->free(pointer); in InternalFree()
541 g_dispatch->free(free_pointer); in InternalFree()
820 return g_dispatch->mallinfo(); in debug_mallinfo()
906 g_dispatch->malloc_disable(); in debug_malloc_disable()
917 g_dispatch->malloc_enable(); in debug_malloc_enable()
[all …]
H A Dmalloc_debug.h64 extern const MallocDispatch* g_dispatch;
H A DPointerData.cpp316 usable_size = g_dispatch->malloc_usable_size(reinterpret_cast<const void*>(info.pointer)); in VerifyFreedPointer()
529 *info = reinterpret_cast<uint8_t*>(g_dispatch->calloc(*info_size, list.size())); in GetInfo()