Home
last modified time | relevance | path

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

/bionic/libc/malloc_debug/
Dmalloc_debug.cpp518 size_t prev_size; in debug_realloc() local
561 prev_size = header->usable_size; in debug_realloc()
562 memcpy(new_pointer, pointer, prev_size); in debug_realloc()
565 prev_size = g_dispatch->malloc_usable_size(pointer); in debug_realloc()
577 if (bytes > prev_size) { in debug_realloc()
578 memset(reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(new_pointer) + prev_size), in debug_realloc()
579 g_debug->config().fill_alloc_value(), bytes - prev_size); in debug_realloc()