Searched refs:FROM_MALLOC (Results 1 – 6 of 6) sorted by relevance
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_malloc_linux.cpp | 41 memprof_free(ptr, &stack, FROM_MALLOC); in INTERCEPTOR() 49 memprof_free(ptr, &stack, FROM_MALLOC); in INTERCEPTOR() 88 return memprof_memalign(boundary, size, &stack, FROM_MALLOC); in INTERCEPTOR() 93 void *res = memprof_memalign(boundary, size, &stack, FROM_MALLOC); in INTERCEPTOR()
|
H A D | memprof_allocator.cpp | 556 void *new_ptr = Allocate(new_size, 8, stack, FROM_MALLOC); in Reallocate() 561 Deallocate(old_ptr, 0, 0, stack, FROM_MALLOC); in Reallocate() 572 void *ptr = Allocate(nmemb * size, 8, stack, FROM_MALLOC); in Calloc() 662 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC)); in memprof_malloc() 682 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC)); in memprof_realloc() 685 instance.Deallocate(p, 0, 0, stack, FROM_MALLOC); in memprof_realloc() 696 instance.Allocate(size, GetPageSizeCached(), stack, FROM_MALLOC)); in memprof_valloc() 709 return SetErrnoOnNull(instance.Allocate(size, PageSize, stack, FROM_MALLOC)); in memprof_pvalloc() 731 return SetErrnoOnNull(instance.Allocate(size, alignment, stack, FROM_MALLOC)); in memprof_aligned_alloc() 741 void *ptr = instance.Allocate(size, alignment, stack, FROM_MALLOC); in memprof_posix_memalign()
|
H A D | memprof_allocator.h | 33 FROM_MALLOC = 1, // Memory block came from malloc, calloc, realloc, etc. enumerator
|
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_malloc_linux.cpp | 53 asan_free(ptr, &stack, FROM_MALLOC); in INTERCEPTOR() 61 asan_free(ptr, &stack, FROM_MALLOC); in INTERCEPTOR() 97 return asan_memalign(boundary, size, &stack, FROM_MALLOC); in INTERCEPTOR() 102 void *res = asan_memalign(boundary, size, &stack, FROM_MALLOC); in INTERCEPTOR()
|
H A D | asan_allocator.cpp | 726 m->alloc_type = FROM_MALLOC; in Deallocate() 766 void *new_ptr = Allocate(new_size, 8, stack, FROM_MALLOC, true); in Reallocate() 776 Deallocate(old_ptr, 0, 0, stack, FROM_MALLOC); in Reallocate() 787 void *ptr = Allocate(nmemb * size, 8, stack, FROM_MALLOC, false); in Calloc() 1008 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC, true)); in asan_malloc() 1028 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC, true)); in asan_realloc() 1031 instance.Deallocate(p, 0, 0, stack, FROM_MALLOC); in asan_realloc() 1042 instance.Allocate(size, GetPageSizeCached(), stack, FROM_MALLOC, true)); in asan_valloc() 1056 instance.Allocate(size, PageSize, stack, FROM_MALLOC, true)); in asan_pvalloc() 1079 instance.Allocate(size, alignment, stack, FROM_MALLOC, true)); in asan_aligned_alloc() [all …]
|
H A D | asan_mac.cpp | 176 asan_free(context, &stack, FROM_MALLOC); in asan_dispatch_call_block_and_release()
|