Home
last modified time | relevance | path

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

/external/compiler-rt/lib/scudo/
Dscudo_interceptors.cpp24 scudoFree(ptr, FromMalloc); in INTERCEPTOR()
28 scudoFree(ptr, FromMalloc); in INTERCEPTOR()
32 return scudoMalloc(size, FromMalloc); in INTERCEPTOR()
Dscudo_allocator.cpp404 if (NewHeader.AllocType != FromMemalign || Type != FromMalloc) { in deallocate()
473 if (OldHeader.AllocType != FromMalloc) { in reallocate()
486 void *NewPtr = allocate(NewSize, MinAlignment, FromMalloc); in reallocate()
511 void *Ptr = allocate(Total, MinAlignment, FromMalloc); in calloc()
552 return Instance.allocate(Size, Allocator::MinAlignment, FromMalloc); in scudoRealloc()
554 Instance.deallocate(Ptr, 0, FromMalloc); in scudoRealloc()
592 return Instance.allocate(Size, Alignment, FromMalloc); in scudoAlignedAlloc()
Dscudo_allocator.h28 FromMalloc = 0, // Memory block came from malloc, realloc, calloc, etc. enumerator
/external/llvm-project/compiler-rt/lib/scudo/
Dscudo_malloc.cpp24 scudoDeallocate(ptr, 0, 0, FromMalloc); in free()
28 return scudoAllocate(size, 0, FromMalloc); in malloc()
Dscudo_allocator.cpp474 if (Header.AllocType != FromMemalign || Type != FromMalloc) in deallocate()
497 void *NewPtr = allocate(NewSize, MinAlignment, FromMalloc); in reallocate()
514 if (UNLIKELY(OldHeader.AllocType != FromMalloc)) in reallocate()
531 void *NewPtr = allocate(NewSize, MinAlignment, FromMalloc); in reallocate()
567 return allocate(NMemB * Size, MinAlignment, FromMalloc, true); in calloc()
713 return SetErrnoOnNull(Instance.allocate(Size, MinAlignment, FromMalloc)); in scudoRealloc()
715 Instance.deallocate(Ptr, 0, 0, FromMalloc); in scudoRealloc()
763 return SetErrnoOnNull(Instance.allocate(Size, Alignment, FromMalloc)); in scudoAlignedAlloc()
Dscudo_allocator.h21 FromMalloc = 0, // Memory block came from malloc, realloc, calloc, etc. enumerator