Lines Matching refs:result
535 TimedResult result; in InternalMalloc() local
541 result.setValue<void*>(nullptr); in InternalMalloc()
542 return result; in InternalMalloc()
547 result.setValue<void*>(nullptr); in InternalMalloc()
548 return result; in InternalMalloc()
552 result = TCALL(memalign, MINIMUM_ALIGNMENT_BYTES, real_size); in InternalMalloc()
553 Header* header = reinterpret_cast<Header*>(result.getValue<void*>()); in InternalMalloc()
555 return result; in InternalMalloc()
557 result.setValue<void*>(InitHeader(header, header, size)); in InternalMalloc()
559 result = TCALL(malloc, real_size); in InternalMalloc()
562 void* pointer = result.getValue<void*>(); in InternalMalloc()
577 return result; in InternalMalloc()
590 TimedResult result = InternalMalloc(size); in debug_malloc() local
593 g_debug->record->AddEntry(new MallocEntry(result.getValue<void*>(), size, in debug_malloc()
594 result.GetStartTimeNS(), result.GetEndTimeNS())); in debug_malloc()
597 return result.getValue<void*>(); in debug_malloc()
646 TimedResult result; in InternalFree() local
657 result = TCALLVOID(free, pointer); in InternalFree()
659 result = TCALLVOID(free, free_pointer); in InternalFree()
662 return result; in InternalFree()
679 TimedResult result = InternalFree(pointer); in debug_free() local
683 new FreeEntry(pointer, result.GetStartTimeNS(), result.GetEndTimeNS())); in debug_free()
706 TimedResult result; in debug_memalign() local
729 result = TCALL(malloc, real_size); in debug_memalign()
730 pointer = result.getValue<void*>(); in debug_memalign()
749 result = TCALL(memalign, alignment, real_size); in debug_memalign()
750 pointer = result.getValue<void*>(); in debug_memalign()
767 result.GetStartTimeNS(), result.GetEndTimeNS())); in debug_memalign()
785 TimedResult result = InternalMalloc(bytes); in debug_realloc() local
787 g_debug->record->AddEntry(new ReallocEntry(result.getValue<void*>(), bytes, nullptr, in debug_realloc()
788 result.GetStartTimeNS(), result.GetEndTimeNS())); in debug_realloc()
790 pointer = result.getValue<void*>(); in debug_realloc()
799 TimedResult result = InternalFree(pointer); in debug_realloc() local
802 g_debug->record->AddEntry(new ReallocEntry(nullptr, bytes, pointer, result.GetStartTimeNS(), in debug_realloc()
803 result.GetEndTimeNS())); in debug_realloc()
824 TimedResult result; in debug_realloc() local
858 result = InternalMalloc(bytes); in debug_realloc()
859 new_pointer = result.getValue<void*>(); in debug_realloc()
870 result.SetEndTimeNS(free_time.GetEndTimeNS()); in debug_realloc()
877 result = TCALL(realloc, pointer, real_size); in debug_realloc()
878 new_pointer = result.getValue<void*>(); in debug_realloc()
900 g_debug->record->AddEntry(new ReallocEntry(new_pointer, bytes, pointer, result.GetStartTimeNS(), in debug_realloc()
901 result.GetEndTimeNS())); in debug_realloc()
941 TimedResult result; in debug_calloc() local
944 result = TCALL(memalign, MINIMUM_ALIGNMENT_BYTES, real_size); in debug_calloc()
945 Header* header = reinterpret_cast<Header*>(result.getValue<void*>()); in debug_calloc()
952 result = TCALL(calloc, 1, real_size); in debug_calloc()
953 pointer = result.getValue<void*>(); in debug_calloc()
958 new CallocEntry(pointer, nmemb, bytes, result.GetStartTimeNS(), result.GetEndTimeNS())); in debug_calloc()