Home
last modified time | relevance | path

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

/bionic/libc/malloc_debug/
Dmalloc_debug.h51 size_t usable_size; member
Dmalloc_debug.cpp356 return g_debug->GetHeader(pointer)->usable_size; in InternalMallocUsableSize()
366 header->usable_size = g_dispatch->malloc_usable_size(orig_pointer); in InitHeader()
367 if (header->usable_size == 0) { in InitHeader()
371 header->usable_size -= g_debug->pointer_offset() + reinterpret_cast<uintptr_t>(header) - in InitHeader()
384 header->usable_size = header->size; in InitHeader()
631 bytes = header->usable_size; in InternalFree()
840 if (real_size < header->usable_size) { in debug_realloc()
845 header->usable_size = header->size; in debug_realloc()
865 prev_size = header->usable_size; in debug_realloc()
DPointerData.cpp315 size_t usable_size; in VerifyFreedPointer() local
333 usable_size = header->usable_size; in VerifyFreedPointer()
335 usable_size = g_dispatch->malloc_usable_size(reinterpret_cast<const void*>(pointer)); in VerifyFreedPointer()
338 size_t bytes = (usable_size < g_debug->config().fill_on_free_bytes()) in VerifyFreedPointer()
339 ? usable_size in VerifyFreedPointer()
DPointerData.h147 static void LogFreeError(const FreePointerInfoType& info, size_t usable_size);
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp369 size_t usable_size = debug_malloc_usable_size(pointer); in TEST_F() local
370 memset(pointer, 0, usable_size); in TEST_F()
373 for (size_t i = 0; i < usable_size; i++) { in TEST_F()
386 size_t usable_size = debug_malloc_usable_size(pointer); in TEST_F() local
387 memset(pointer, 0, usable_size); in TEST_F()
393 for (size_t i = 30; i < usable_size; i++) { in TEST_F()
406 size_t usable_size = debug_malloc_usable_size(pointer); in TEST_F() local
407 memset(pointer, 0, usable_size); in TEST_F()
413 for (size_t i = 30; i < usable_size; i++) { in TEST_F()
1668 size_t usable_size = debug_malloc_usable_size(pointer); in TEST_F() local
[all …]
/bionic/tests/
Dmalloc_test.cpp550 size_t usable_size = malloc_usable_size(zero_mem); in TEST() local
551 for (size_t i = 0; i < usable_size; i++) { in TEST()
842 size_t usable_size = malloc_usable_size(ptrs[i]); in TEST() local
846 if (new_allocated >= allocated + usable_size) { in TEST()
914 size_t usable_size = malloc_usable_size(ptrs[i]); in TEST() local
918 if (new_allocated >= allocated + usable_size) { in TEST()