Lines Matching refs:g_dispatch
68 const MallocDispatch* g_dispatch; variable
261 return g_dispatch->malloc_usable_size(pointer); in InternalMallocUsableSize()
269 header->usable_size = g_dispatch->malloc_usable_size(orig_pointer); in InitHeader()
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()
405 return g_dispatch->malloc_usable_size(pointer); in debug_malloc_usable_size()
444 reinterpret_cast<Header*>(g_dispatch->memalign(MINIMUM_ALIGNMENT_BYTES, real_size)); in InternalMalloc()
450 pointer = g_dispatch->malloc(real_size); in InternalMalloc()
470 return g_dispatch->malloc(size); in debug_malloc()
514 bytes = g_dispatch->malloc_usable_size(pointer); in InternalFree()
538 g_dispatch->free(pointer); in InternalFree()
541 g_dispatch->free(free_pointer); in InternalFree()
547 return g_dispatch->free(pointer); in debug_free()
566 return g_dispatch->memalign(alignment, bytes); in debug_memalign()
603 pointer = g_dispatch->malloc(real_size); in debug_memalign()
621 pointer = g_dispatch->memalign(alignment, real_size); in debug_memalign()
646 return g_dispatch->realloc(pointer, bytes); in debug_realloc()
735 prev_size = g_dispatch->malloc_usable_size(pointer); in debug_realloc()
736 new_pointer = g_dispatch->realloc(pointer, real_size); in debug_realloc()
766 return g_dispatch->calloc(nmemb, bytes); in debug_calloc()
799 reinterpret_cast<Header*>(g_dispatch->memalign(MINIMUM_ALIGNMENT_BYTES, real_size)); in debug_calloc()
803 memset(header, 0, g_dispatch->malloc_usable_size(header)); in debug_calloc()
806 pointer = g_dispatch->calloc(1, real_size); in debug_calloc()
820 return g_dispatch->mallinfo(); in debug_mallinfo()
824 return g_dispatch->mallopt(param, value); in debug_mallopt()
829 return g_dispatch->malloc_info(options, fp); in debug_malloc_info()
865 return g_dispatch->aligned_alloc(alignment, size); in debug_aligned_alloc()
876 return g_dispatch->posix_memalign(memptr, alignment, size); in debug_posix_memalign()
901 return g_dispatch->malloc_iterate(base, size, callback, arg); in debug_malloc_iterate()
906 g_dispatch->malloc_disable(); in debug_malloc_disable()
917 g_dispatch->malloc_enable(); in debug_malloc_enable()
938 return g_dispatch->pvalloc(bytes); in debug_pvalloc()
953 return g_dispatch->valloc(size); in debug_valloc()