Lines Matching refs:ptr

86 void *__libc_realloc(void *ptr, size_t size);
88 void __libc_free(void *ptr);
94 size_t dlmalloc_usable_size(const void *ptr);
218 void *ptr = malloc_p(minLargeObjectSize); in CheckStdFuncOverload() local
219 scalableMallocCheckSize(ptr, minLargeObjectSize); in CheckStdFuncOverload()
220 free(ptr); in CheckStdFuncOverload()
222 ptr = calloc_p(minLargeObjectSize, 2); in CheckStdFuncOverload()
223 scalableMallocCheckSize(ptr, 2*minLargeObjectSize); in CheckStdFuncOverload()
224 void *ptr1 = realloc_p(ptr, 10*minLargeObjectSize); in CheckStdFuncOverload()
234 void *ptr = memalign_p(128, 4*minLargeObjectSize); in CheckMemalignFuncOverload() local
235 scalableMallocCheckSize(ptr, 4*minLargeObjectSize); in CheckMemalignFuncOverload()
236 REQUIRE(tbb::detail::is_aligned(ptr, 128)); in CheckMemalignFuncOverload()
237 free_p(ptr); in CheckMemalignFuncOverload()
242 void *ptr = valloc_p(minLargeObjectSize); in CheckVallocFuncOverload() local
243 scalableMallocCheckSize(ptr, minLargeObjectSize); in CheckVallocFuncOverload()
244 REQUIRE(tbb::detail::is_aligned(ptr, sysconf(_SC_PAGESIZE))); in CheckVallocFuncOverload()
245 free_p(ptr); in CheckVallocFuncOverload()
255 void *ptr = pvalloc_p(sz); in CheckPvalloc() local
256 scalableMallocCheckSize(ptr, sz? alignUp(sz, memoryPageSize) : memoryPageSize); in CheckPvalloc()
257 REQUIRE(tbb::detail::is_aligned(ptr, memoryPageSize)); in CheckPvalloc()
258 free_p(ptr); in CheckPvalloc()
272 void *ptr = nullptr; in CheckFreeAligned() local
274 int ret = posix_memalign(&ptr, align[a], sz[s]); in CheckFreeAligned()
277 ptr = _aligned_malloc(sz[s], align[a]); in CheckFreeAligned()
279 REQUIRE(tbb::detail::is_aligned(ptr, align[a])); in CheckFreeAligned()
280 free(ptr); in CheckFreeAligned()
403 void *ptr = nullptr; variable
404 utils::suppress_unused_warning(ptr); // for android
433 int ret = posix_memalign(&ptr, 1024, 3*minLargeObjectSize);
435 scalableMallocCheckSize(ptr, 3*minLargeObjectSize);
436 REQUIRE(tbb::detail::is_aligned(ptr, 1024));
437 free(ptr);
483 ptr = _aligned_malloc(minLargeObjectSize, 16);
484 scalableMallocCheckSize(ptr, minLargeObjectSize);
485 REQUIRE(tbb::detail::is_aligned(ptr, 16));
489 scalableMallocCheckSize(ptr, minLargeObjectSize);
490 REQUIRE(tbb::detail::is_aligned(ptr, sizeof(void*)));
493 ptr1 = _aligned_realloc(ptr, minLargeObjectSize*10, 16);
495 REQUIRE(tbb::detail::is_aligned(ptr, 16));
520 void *ptr = nullptr; in __anon9013b3550102() local
523 ptr = realloc(ptr, 1024*1024 + 4096*j); in __anon9013b3550102()
526 free(ptr); in __anon9013b3550102()