Home
last modified time | relevance | path

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

/bionic/libc/malloc_hooks/
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()
94 return g_dispatch->memalign(alignment, bytes); in default_memalign_hook()
101 g_dispatch = malloc_dispatch; in hooks_initialize()
125 return g_dispatch->malloc_usable_size(pointer); in hooks_malloc_usable_size()
132 return g_dispatch->malloc(size); in hooks_malloc()
139 return g_dispatch->free(pointer); in hooks_free()
146 return g_dispatch->memalign(alignment, bytes); in hooks_memalign()
[all …]
/bionic/libc/malloc_debug/
Dmalloc_debug.cpp71 const MallocDispatch* g_dispatch; variable
142 decltype((g_dispatch->*fn)(args...)) r; in TimerCall()
145 r = (g_dispatch->*fn)(args...); in TimerCall()
147 r = (g_dispatch->*fn)(args...); in TimerCall()
158 (g_dispatch->*fn)(args...); in TimerCallVoid()
358 return g_dispatch->malloc_usable_size(pointer); in InternalMallocUsableSize()
366 header->usable_size = g_dispatch->malloc_usable_size(orig_pointer); in InitHeader()
368 g_dispatch->free(orig_pointer); in InitHeader()
407 g_dispatch = malloc_dispatch; in debug_initialize()
497 g_dispatch->free(info); in debug_free_malloc_leak_info()
[all …]
Dmalloc_debug.h64 extern const MallocDispatch* g_dispatch;
DPointerData.cpp335 usable_size = g_dispatch->malloc_usable_size(reinterpret_cast<const void*>(pointer)); in VerifyFreedPointer()
548 *info = reinterpret_cast<uint8_t*>(g_dispatch->calloc(*info_size, list.size())); in GetInfo()