Home
last modified time | relevance | path

Searched defs:ptr (Results 1 – 25 of 63) sorted by relevance

123

/bionic/libc/bionic/
Dmalloc_tagged_pointers.h72 static inline void* TagPointer(void* ptr) { in TagPointer()
83 static inline void* UntagPointer(const volatile void* ptr) { in UntagPointer()
89 static inline void* MaybeUntagAndCheckPointer(const volatile void* ptr) { in MaybeUntagAndCheckPointer()
112 static inline void* MaybeTagPointer(void* ptr) { in MaybeTagPointer()
120 static inline void* UntagPointer(const volatile void* ptr) { in UntagPointer()
124 static inline void* MaybeTagPointer(void* ptr) { in MaybeTagPointer()
128 static inline void* MaybeUntagAndCheckPointer(const volatile void* ptr) { in MaybeUntagAndCheckPointer()
Dnew.cpp42 void operator delete(void* ptr) throw() { in operator delete()
46 void operator delete[](void* ptr) throw() { in operator delete[]()
58 void operator delete(void* ptr, const std::nothrow_t&) throw() { in operator delete()
62 void operator delete[](void* ptr, const std::nothrow_t&) throw() { in operator delete[]()
Dbionic_allocator.cpp164 void BionicSmallObjectAllocator::free(void* ptr) { in free()
329 inline page_info* BionicAllocator::get_page_info_unchecked(void* ptr) { in get_page_info_unchecked()
334 inline page_info* BionicAllocator::get_page_info(void* ptr) { in get_page_info()
343 void* BionicAllocator::realloc(void* ptr, size_t size) { in realloc()
378 void BionicAllocator::free(void* ptr) { in free()
397 size_t BionicAllocator::get_chunk_size(void* ptr) { in get_chunk_size()
D__cmsg_nxthdr.cpp32 cmsghdr* ptr; in __cmsg_nxthdr() local
/bionic/libc/arch-arm/bionic/
Datomics_arm.c61 __atomic_cmpxchg(int old, int _new, volatile int *ptr) in __atomic_cmpxchg()
68 __atomic_swap(int _new, volatile int *ptr) in __atomic_swap()
78 __atomic_dec(volatile int *ptr) in __atomic_dec()
84 __atomic_inc(volatile int *ptr) in __atomic_inc()
/bionic/libc/malloc_hooks/tests/
Dmalloc_hooks_tests.cpp163 void* MallocHooksTest::test_realloc_hook(void* ptr, size_t size, const void* arg) { in test_realloc_hook()
175 void MallocHooksTest::test_free_hook(void* ptr, const void* arg) { in test_free_hook()
193 void* ptr = malloc(1024); in TEST_F() local
231 void* ptr = malloc(1024); in TEST_F() local
249 void* ptr = malloc(1024); in TEST_F() local
267 void* ptr = malloc(1024); in TEST_F() local
286 void* ptr = memalign(32, 1024); in TEST_F() local
304 void* ptr; in TEST_F() local
323 void* ptr; in TEST_F() local
342 void* ptr = aligned_alloc(32, 1024); in TEST_F() local
[all …]
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_system_tests.cpp95 pthread_key_create(&jmp_data_key_, [](void* ptr) { free(ptr); }); in LogReader()
455 void* ptr = malloc(128); in TEST() local
475 void* ptr = aligned_alloc(64, 1152); in AlignedAlloc() local
490 void* ptr = calloc(1, 1123); in Calloc() local
505 void* ptr = malloc(1123); in Malloc() local
520 void* ptr = memalign(64, 1123); in Memalign() local
535 void* ptr; in PosixMemalign() local
551 void* ptr = reallocarray(nullptr, 1, 1123); in Reallocarray() local
566 void* ptr = realloc(nullptr, 1123); in Realloc() local
584 void* ptr = pvalloc(1123); in Pvalloc() local
[all …]
/bionic/tests/
Dmalloc_test.cpp76 void *ptr = malloc(100); in TEST() local
92 char *ptr = (char *)calloc(1, alloc_len); in TEST() local
108 char *ptr = reinterpret_cast<char*>(calloc(1, alloc_len)); in TEST() local
147 char *ptr = reinterpret_cast<char*>(memalign(alignment, 100)); in TEST() local
164 void* ptr; in TEST() local
175 char *ptr = (char*)memalign(alignment, 100); in TEST() local
210 char *ptr = (char *)malloc(100); in TEST() local
226 char *ptr = (char *)malloc(200); in TEST() local
242 char *ptr = (char *)malloc(200); in TEST() local
280 char *ptr = (char *)calloc(1, 100); in TEST() local
[all …]
Dmalloc_iterate_test.cpp41 void* ptr; member
55 void* ptr = malloc(size); in AllocPtr() local
81 uintptr_t ptr = reinterpret_cast<uintptr_t>(test_data->allocs[i].ptr); in SavePointers() local
134 void* ptr = malloc(size); in AllocateSizes() local
247 void* ptr = malloc(1024); in TEST() local
Dbionic_allocator_test.cpp66 void* ptr = allocator.alloc(0); in TEST() local
217 void* ptr; in TEST() local
240 void* ptr; in TEST() local
/bionic/libc/dns/include/
Dhostent.h67 #define HENT_ARRAY(dst, anum, ptr, len) \ argument
77 #define HENT_COPY(dst, src, slen, ptr, len) \ argument
87 #define HENT_SCOPY(dst, src, ptr, len) \ argument
/bionic/benchmarks/
Dmalloc_benchmark.cpp50 void* ptr = malloc(size); in RunMalloptPurge() local
60 for (auto ptr : ptrs) { in RunMalloptPurge() local
Dstdlib_benchmark.cpp32 void* ptr; in MallocFree() local
67 void* ptr; in CallocFree() local
Dutil.cpp36 uintptr_t ptr = reinterpret_cast<uintptr_t>(orig_ptr); in GetAlignedMemory() local
/bionic/libc/malloc_debug/
DPointerData.cpp212 void PointerData::Add(const void* ptr, size_t pointer_size) { in Add()
224 void PointerData::Remove(const void* ptr) { in Remove()
242 size_t PointerData::GetFrames(const void* ptr, uintptr_t* frames, size_t max_frames) { in GetFrames()
353 void* PointerData::AddFreed(const void* ptr, size_t size_bytes) { in AddFreed()
375 void PointerData::LogFreeBacktrace(const void* ptr) { in LogFreeBacktrace()
570 bool PointerData::Exists(const void* ptr) { in Exists()
/bionic/libc/platform/bionic/
Dpac.h33 inline uintptr_t __bionic_clear_pac_bits(uintptr_t ptr) { in __bionic_clear_pac_bits()
/bionic/libc/arch-x86_64/bionic/
D__set_tls.c35 __LIBC_HIDDEN__ int __set_tls(void* ptr) { in __set_tls()
/bionic/tests/libs/
Ddlopen_nodelete_dt_flags_1.cpp22 extern "C" void dlopen_nodelete_dt_flags_1_set_unload_flag_ptr(bool* ptr) { in dlopen_nodelete_dt_flags_1_set_unload_flag_ptr()
Ddlopen_nodelete_2.cpp23 extern "C" void dlopen_nodelete_2_set_unload_flag_ptr(bool* ptr) { in dlopen_nodelete_2_set_unload_flag_ptr()
Ddlopen_nodelete_1.cpp23 extern "C" void dlopen_nodelete_1_set_unload_flag_ptr(bool* ptr) { in dlopen_nodelete_1_set_unload_flag_ptr()
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Drecallocarray.c31 recallocarray(void *ptr, size_t oldnmemb, size_t newnmemb, size_t size) in recallocarray()
/bionic/libc/include/bits/
Depoll_event.h41 void* ptr; member
/bionic/libc/arch-x86/bionic/
D__set_tls.cpp59 extern "C" __LIBC_HIDDEN__ int __set_tls(void* ptr) { in __set_tls()
/bionic/libc/malloc_hooks/
Dmalloc_hooks.cpp162 void* ptr = __malloc_hook(size, __builtin_return_address(0)); in hooks_calloc() local
189 void* ptr = __memalign_hook(alignment, size, __builtin_return_address(0)); in hooks_aligned_alloc() local
/bionic/libc/kernel/uapi/linux/android/
Dbinder.h107 binder_uintptr_t ptr; member
160 binder_uintptr_t ptr; member
173 } ptr; member
186 binder_uintptr_t ptr; member
199 binder_uintptr_t ptr; member

123