Home
last modified time | relevance | path

Searched refs:malloc_usable_size (Results 1 – 25 of 63) sorted by relevance

123

/external/llvm-project/compiler-rt/lib/scudo/standalone/tests/
Dwrappers_c_test.cpp43 EXPECT_LE(Size, malloc_usable_size(P)); in TEST()
62 EXPECT_LE(Size, malloc_usable_size(P)); in TEST()
93 EXPECT_LE(Size, malloc_usable_size(P)); in TEST()
100 EXPECT_LE(Size, malloc_usable_size(P)); in TEST()
123 EXPECT_LE(Alignment * 4U, malloc_usable_size(P)); in TEST()
146 EXPECT_LE(Size, malloc_usable_size(P)); in TEST()
151 EXPECT_LE(Size * 2U, malloc_usable_size(P)); in TEST()
157 EXPECT_LE(Size / 2U, malloc_usable_size(P)); in TEST()
179 EXPECT_LE(Size, malloc_usable_size(P)); in TEST()
185 EXPECT_LE(Size * 2U, malloc_usable_size(P)); in TEST()
[all …]
/external/scudo/standalone/tests/
Dwrappers_c_test.cpp43 EXPECT_LE(Size, malloc_usable_size(P)); in TEST()
73 EXPECT_LE(Size, malloc_usable_size(P)); in TEST()
116 EXPECT_LE(Size, malloc_usable_size(P)); in TEST()
123 EXPECT_LE(Size, malloc_usable_size(P)); in TEST()
146 EXPECT_LE(Alignment * 4U, malloc_usable_size(P)); in TEST()
169 EXPECT_LE(Size, malloc_usable_size(P)); in TEST()
174 EXPECT_LE(Size * 2U, malloc_usable_size(P)); in TEST()
180 EXPECT_LE(Size / 2U, malloc_usable_size(P)); in TEST()
202 EXPECT_LE(Size, malloc_usable_size(P)); in TEST()
208 EXPECT_LE(Size * 2U, malloc_usable_size(P)); in TEST()
[all …]
/external/compiler-rt/lib/asan/
Dasan_malloc_linux.cc105 INTERCEPTOR(uptr, malloc_usable_size, void *ptr) { in INTERCEPTOR() argument
159 uptr (*malloc_usable_size)(void *mem); member
167 uptr (*malloc_usable_size)(void *mem); member
177 WRAP(realloc), WRAP(memalign), WRAP(malloc_usable_size)};
181 WRAP(malloc), WRAP(malloc_usable_size), WRAP(memalign),
/external/libchrome/base/allocator/
Dallocator_shim_default_dispatch_to_linker_wrapped_symbols.cc14 size_t malloc_usable_size(const void*);
78 using MallocUsableSizeFunction = decltype(malloc_usable_size)*; in RealSizeEstimate()
91 return malloc_usable_size(address); in RealSizeEstimate()
Dallocator_shim_default_dispatch_to_glibc.cc59 return malloc_usable_size(address); in GlibcGetSizeEstimate()
/external/libwebsockets/lib/core/
Dalloc.c103 allocated -= malloc_usable_size(ptr); in _realloc()
112 allocated += malloc_usable_size(v); in _realloc()
118 allocated -= malloc_usable_size(ptr); in _realloc()
/external/llvm-project/compiler-rt/lib/asan/
Dasan_malloc_linux.cpp197 INTERCEPTOR(uptr, malloc_usable_size, void *ptr) { in INTERCEPTOR() argument
256 uptr (*malloc_usable_size)(void *mem); member
264 uptr (*malloc_usable_size)(void *mem); member
274 WRAP(realloc), WRAP(memalign), WRAP(malloc_usable_size)};
278 WRAP(malloc), WRAP(malloc_usable_size), WRAP(memalign),
/external/compiler-rt/test/scudo/
Dsizes.cpp45 size_t size = malloc_usable_size(p); in main()
52 size = malloc_usable_size(p); in main()
Drealloc.cpp27 size = malloc_usable_size(p); in main()
/external/llvm-project/compiler-rt/test/scudo/
Dvalloc.c41 assert(malloc_usable_size(p) >= round_up_to(size, page_size)); in main()
50 assert(malloc_usable_size(p) >= round_up_to(size, page_size)); in main()
/external/jemalloc_new/include/jemalloc/internal/
Dpublic_namespace.h12 #define je_malloc_usable_size JEMALLOC_N(malloc_usable_size)
/external/jemalloc_new/include/jemalloc/
Djemalloc_mangle.h23 # define malloc_usable_size je_malloc_usable_size macro
Djemalloc_mangle_jet.h23 # define malloc_usable_size jet_malloc_usable_size macro
Djemalloc_rename.h42 # define je_malloc_usable_size malloc_usable_size
Djemalloc_defs.h.in23 * size_t malloc_usable_size(const void *ptr);
/external/compiler-rt/lib/lsan/
Dlsan_interceptors.cc125 INTERCEPTOR(uptr, malloc_usable_size, void *ptr) { in INTERCEPTOR() argument
288 INTERCEPT_FUNCTION(malloc_usable_size); in InitializeInterceptors()
/external/llvm-project/compiler-rt/lib/scudo/
Dscudo_malloc.cpp74 INTERCEPTOR_ATTRIBUTE size_t malloc_usable_size(void *ptr) { in malloc_usable_size() function
/external/compiler-rt/lib/scudo/
Dscudo_interceptors.cpp67 INTERCEPTOR(uptr, malloc_usable_size, void *ptr) { in INTERCEPTOR() argument
/external/llvm-project/compiler-rt/lib/asan/tests/
Dasan_test.cpp439 EXPECT_EQ(0U, malloc_usable_size(NULL)); in TEST()
440 EXPECT_EQ(kArraySize, malloc_usable_size(array)); in TEST()
441 EXPECT_EQ(sizeof(int), malloc_usable_size(int_ptr)); in TEST()
442 EXPECT_DEATH(malloc_usable_size((void*)0x123), kMallocUsableSizeErrorMsg); in TEST()
443 EXPECT_DEATH(malloc_usable_size(array + kArraySize / 2), in TEST()
446 EXPECT_DEATH(malloc_usable_size(array), kMallocUsableSizeErrorMsg); in TEST()
/external/compiler-rt/lib/asan/tests/
Dasan_test.cc414 EXPECT_EQ(0U, malloc_usable_size(NULL)); in TEST()
415 EXPECT_EQ(kArraySize, malloc_usable_size(array)); in TEST()
416 EXPECT_EQ(sizeof(int), malloc_usable_size(int_ptr)); in TEST()
417 EXPECT_DEATH(malloc_usable_size((void*)0x123), kMallocUsableSizeErrorMsg); in TEST()
418 EXPECT_DEATH(malloc_usable_size(array + kArraySize / 2), in TEST()
421 EXPECT_DEATH(malloc_usable_size(array), kMallocUsableSizeErrorMsg); in TEST()
/external/jemalloc_new/test/integration/
Dposix_memalign.c103 total += malloc_usable_size(ps[i]); in TEST_BEGIN()
Dallocated.c73 usize = malloc_usable_size(p); in thd_start()
Daligned_alloc.c109 total += malloc_usable_size(ps[i]); in TEST_BEGIN()
/external/jemalloc_new/test/stress/
Dmicrobench.c111 malloc_usable_size(p); in malloc_mus_free()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_allocator_testlib.cc143 void malloc_usable_size() { in malloc_usable_size() function

123