Home
last modified time | relevance | path

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

/bionic/libc/malloc_debug/
Dmalloc_debug.cpp259 return g_debug->GetHeader(pointer)->usable_size; in InternalMallocUsableSize()
269 header->usable_size = g_dispatch->malloc_usable_size(orig_pointer); in InitHeader()
270 if (header->usable_size == 0) { in InitHeader()
274 header->usable_size -= g_debug->pointer_offset() + reinterpret_cast<uintptr_t>(header) - in InitHeader()
287 header->usable_size = header->size; in InitHeader()
513 bytes = header->usable_size; in InternalFree()
704 if (real_size < header->usable_size) { in debug_realloc()
709 header->usable_size = header->size; in debug_realloc()
728 prev_size = header->usable_size; in debug_realloc()
DPointerData.cpp297 size_t usable_size; in VerifyFreedPointer() local
314 usable_size = header->usable_size; in VerifyFreedPointer()
316 usable_size = g_dispatch->malloc_usable_size(reinterpret_cast<const void*>(info.pointer)); in VerifyFreedPointer()
319 size_t bytes = (usable_size < g_debug->config().fill_on_free_bytes()) in VerifyFreedPointer()
320 ? usable_size in VerifyFreedPointer()
Dmalloc_debug.h51 size_t usable_size; member
DPointerData.h148 static void LogFreeError(const FreePointerInfoType& info, size_t usable_size);
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp301 size_t usable_size = debug_malloc_usable_size(pointer); in TEST_F() local
302 memset(pointer, 0, usable_size); in TEST_F()
305 for (size_t i = 0; i < usable_size; i++) { in TEST_F()
318 size_t usable_size = debug_malloc_usable_size(pointer); in TEST_F() local
319 memset(pointer, 0, usable_size); in TEST_F()
325 for (size_t i = 30; i < usable_size; i++) { in TEST_F()
338 size_t usable_size = debug_malloc_usable_size(pointer); in TEST_F() local
339 memset(pointer, 0, usable_size); in TEST_F()
345 for (size_t i = 30; i < usable_size; i++) { in TEST_F()
1598 size_t usable_size = debug_malloc_usable_size(pointer); in TEST_F() local
[all …]
/bionic/tests/
Dmalloc_test.cpp518 size_t usable_size = malloc_usable_size(zero_mem); in TEST() local
519 for (size_t i = 0; i < usable_size; i++) { in TEST()
756 size_t usable_size = malloc_usable_size(ptrs[i]); in TEST() local
760 if (new_allocated >= allocated + usable_size) { in TEST()