Home
last modified time | relevance | path

Searched refs:FROM_MALLOC (Results 1 – 17 of 17) sorted by relevance

/external/llvm-project/compiler-rt/lib/asan/tests/
Dasan_noinst_test.cpp72 __asan::asan_free(ptr, &stack1, __asan::FROM_MALLOC); in MallocStress()
82 &stack2, __asan::FROM_MALLOC); in MallocStress()
91 __asan::asan_free(vec[i], &stack3, __asan::FROM_MALLOC); in MallocStress()
143 __asan::asan_free(p, &stack, __asan::FROM_MALLOC); in TEST()
148 __asan::asan_free(p1, &stack, __asan::FROM_MALLOC); in TEST()
165 __asan::asan_free(p, &stack, __asan::FROM_MALLOC); in ThreadedQuarantineTestWorker()
204 __asan::asan_free(p[i], &stack, __asan::FROM_MALLOC); in ThreadedOneSizeMallocStress()
269 __asan::asan_free(ptr, &stack, __asan::FROM_MALLOC); in TEST()
/external/compiler-rt/lib/asan/tests/
Dasan_noinst_test.cc71 __asan::asan_free(ptr, &stack1, __asan::FROM_MALLOC); in MallocStress()
81 &stack2, __asan::FROM_MALLOC); in MallocStress()
90 __asan::asan_free(vec[i], &stack3, __asan::FROM_MALLOC); in MallocStress()
142 __asan::asan_free(p, &stack, __asan::FROM_MALLOC); in TEST()
147 __asan::asan_free(p1, &stack, __asan::FROM_MALLOC); in TEST()
163 __asan::asan_free(p, &stack, __asan::FROM_MALLOC); in ThreadedQuarantineTestWorker()
194 __asan::asan_free(p[i], &stack, __asan::FROM_MALLOC); in ThreadedOneSizeMallocStress()
259 __asan::asan_free(ptr, &stack, __asan::FROM_MALLOC); in TEST()
/external/compiler-rt/lib/asan/
Dasan_malloc_mac.cc31 void *p = asan_memalign(alignment, size, &stack, FROM_MALLOC)
43 void *p = asan_memalign(GetPageSizeCached(), size, &stack, FROM_MALLOC);
46 asan_free(ptr, &stack, FROM_MALLOC);
Dasan_malloc_linux.cc50 asan_free(ptr, &stack, FROM_MALLOC); in INTERCEPTOR()
57 asan_free(ptr, &stack, FROM_MALLOC); in INTERCEPTOR()
90 return asan_memalign(boundary, size, &stack, FROM_MALLOC); in INTERCEPTOR()
95 return asan_memalign(boundary, size, &stack, FROM_MALLOC); in INTERCEPTOR()
100 void *res = asan_memalign(boundary, size, &stack, FROM_MALLOC); in INTERCEPTOR()
Dasan_allocator.cc549 void *new_ptr = Allocate(new_size, 8, stack, FROM_MALLOC, true); in Reallocate()
559 Deallocate(old_ptr, 0, stack, FROM_MALLOC); in Reallocate()
567 void *ptr = Allocate(nmemb * size, 8, stack, FROM_MALLOC, false); in Calloc()
734 return instance.Allocate(size, 8, stack, FROM_MALLOC, true); in asan_malloc()
743 return instance.Allocate(size, 8, stack, FROM_MALLOC, true); in asan_realloc()
745 instance.Deallocate(p, 0, stack, FROM_MALLOC); in asan_realloc()
752 return instance.Allocate(size, GetPageSizeCached(), stack, FROM_MALLOC, true); in asan_valloc()
762 return instance.Allocate(size, PageSize, stack, FROM_MALLOC, true); in asan_pvalloc()
767 void *ptr = instance.Allocate(size, alignment, stack, FROM_MALLOC, true); in asan_posix_memalign()
Dasan_malloc_win.cc45 return asan_free(ptr, &stack, FROM_MALLOC); in free()
181 asan_free(lpMem, &stack, FROM_MALLOC); in INTERCEPTOR_WINAPI()
Dasan_allocator.h27 FROM_MALLOC = 1, // Memory block came from malloc, calloc, realloc, etc. enumerator
Dasan_mac.cc168 asan_free(context, &stack, FROM_MALLOC); in asan_dispatch_call_block_and_release()
/external/llvm-project/compiler-rt/lib/asan/
Dasan_malloc_mac.cpp31 void *p = asan_memalign(alignment, size, &stack, FROM_MALLOC)
46 void *p = asan_memalign(GetPageSizeCached(), size, &stack, FROM_MALLOC);
49 asan_free(ptr, &stack, FROM_MALLOC);
Dasan_malloc_linux.cpp128 asan_free(ptr, &stack, FROM_MALLOC); in INTERCEPTOR()
136 asan_free(ptr, &stack, FROM_MALLOC); in INTERCEPTOR()
179 return asan_memalign(boundary, size, &stack, FROM_MALLOC); in INTERCEPTOR()
184 void *res = asan_memalign(boundary, size, &stack, FROM_MALLOC); in INTERCEPTOR()
Dasan_malloc_win.cpp83 return asan_free(ptr, &stack, FROM_MALLOC); in free()
265 asan_free(lpMem, &stack, FROM_MALLOC); in INTERCEPTOR_WINAPI()
319 asan_free(replacement_alloc, &stack, FROM_MALLOC); in SharedReAlloc()
344 asan_free(lpMem, &stack, FROM_MALLOC); in SharedReAlloc()
442 asan_free(BaseAddress, &stack, FROM_MALLOC); in INTERCEPTOR_WINAPI()
Dasan_allocator.cpp727 void *new_ptr = Allocate(new_size, 8, stack, FROM_MALLOC, true); in Reallocate()
737 Deallocate(old_ptr, 0, 0, stack, FROM_MALLOC); in Reallocate()
748 void *ptr = Allocate(nmemb * size, 8, stack, FROM_MALLOC, false); in Calloc()
980 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC, true)); in asan_malloc()
1000 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC, true)); in asan_realloc()
1003 instance.Deallocate(p, 0, 0, stack, FROM_MALLOC); in asan_realloc()
1014 instance.Allocate(size, GetPageSizeCached(), stack, FROM_MALLOC, true)); in asan_valloc()
1028 instance.Allocate(size, PageSize, stack, FROM_MALLOC, true)); in asan_pvalloc()
1051 instance.Allocate(size, alignment, stack, FROM_MALLOC, true)); in asan_aligned_alloc()
1061 void *ptr = instance.Allocate(size, alignment, stack, FROM_MALLOC, true); in asan_posix_memalign()
Dasan_mac.cpp171 asan_free(context, &stack, FROM_MALLOC); in asan_dispatch_call_block_and_release()
Dasan_allocator.h27 FROM_MALLOC = 1, // Memory block came from malloc, calloc, realloc, etc. enumerator
/external/llvm-project/compiler-rt/lib/memprof/
Dmemprof_malloc_linux.cpp110 memprof_free(ptr, &stack, FROM_MALLOC); in INTERCEPTOR()
118 memprof_free(ptr, &stack, FROM_MALLOC); in INTERCEPTOR()
161 return memprof_memalign(boundary, size, &stack, FROM_MALLOC); in INTERCEPTOR()
166 void *res = memprof_memalign(boundary, size, &stack, FROM_MALLOC); in INTERCEPTOR()
Dmemprof_allocator.cpp669 void *new_ptr = Allocate(new_size, 8, stack, FROM_MALLOC); in Reallocate()
674 Deallocate(old_ptr, 0, 0, stack, FROM_MALLOC); in Reallocate()
685 void *ptr = Allocate(nmemb * size, 8, stack, FROM_MALLOC); in Calloc()
773 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC)); in memprof_malloc()
793 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC)); in memprof_realloc()
796 instance.Deallocate(p, 0, 0, stack, FROM_MALLOC); in memprof_realloc()
807 instance.Allocate(size, GetPageSizeCached(), stack, FROM_MALLOC)); in memprof_valloc()
820 return SetErrnoOnNull(instance.Allocate(size, PageSize, stack, FROM_MALLOC)); in memprof_pvalloc()
842 return SetErrnoOnNull(instance.Allocate(size, alignment, stack, FROM_MALLOC)); in memprof_aligned_alloc()
852 void *ptr = instance.Allocate(size, alignment, stack, FROM_MALLOC); in memprof_posix_memalign()
Dmemprof_allocator.h33 FROM_MALLOC = 1, // Memory block came from malloc, calloc, realloc, etc. enumerator