Searched refs:usable_size (Results 1 – 6 of 6) sorted by relevance
259 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()
297 size_t usable_size; in VerifyFreedPointer() local314 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()
51 size_t usable_size; member
148 static void LogFreeError(const FreePointerInfoType& info, size_t usable_size);
301 size_t usable_size = debug_malloc_usable_size(pointer); in TEST_F() local302 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() local319 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() local339 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 …]
518 size_t usable_size = malloc_usable_size(zero_mem); in TEST() local519 for (size_t i = 0; i < usable_size; i++) { in TEST()756 size_t usable_size = malloc_usable_size(ptrs[i]); in TEST() local760 if (new_allocated >= allocated + usable_size) { in TEST()