Searched refs:usable_size (Results 1 – 6 of 6) sorted by relevance
51 size_t usable_size; member
356 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()
315 size_t usable_size; in VerifyFreedPointer() local333 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()
147 static void LogFreeError(const FreePointerInfoType& info, size_t usable_size);
369 size_t usable_size = debug_malloc_usable_size(pointer); in TEST_F() local370 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() local387 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() local407 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 …]
550 size_t usable_size = malloc_usable_size(zero_mem); in TEST() local551 for (size_t i = 0; i < usable_size; i++) { in TEST()842 size_t usable_size = malloc_usable_size(ptrs[i]); in TEST() local846 if (new_allocated >= allocated + usable_size) { in TEST()914 size_t usable_size = malloc_usable_size(ptrs[i]); in TEST() local918 if (new_allocated >= allocated + usable_size) { in TEST()