Home
last modified time | relevance | path

Searched refs:ptrs (Results 1 – 6 of 6) sorted by relevance

/bionic/benchmarks/
Dmalloc_sql_benchmark.cpp55 void* ptrs[max_allocs]; in BenchmarkMalloc() local
60 ptrs[entries[i].idx] = malloc(entries[i].size); in BenchmarkMalloc()
63 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 10; in BenchmarkMalloc()
66 ptrs[entries[i].idx] = calloc(entries[i].arg2, entries[i].size); in BenchmarkMalloc()
69 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 20; in BenchmarkMalloc()
72 ptrs[entries[i].idx] = memalign(entries[i].arg2, entries[i].size); in BenchmarkMalloc()
75 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 30; in BenchmarkMalloc()
79 ptrs[entries[i].idx] = realloc(nullptr, entries[i].size); in BenchmarkMalloc()
81 ptrs[entries[i].idx] = realloc(ptrs[entries[i].arg2 - 1], entries[i].size); in BenchmarkMalloc()
85 reinterpret_cast<uint8_t*>(ptrs[entries[i].idx])[0] = 40; in BenchmarkMalloc()
[all …]
Dmalloc_benchmark.cpp53 std::vector<void*> ptrs; in RunMalloptPurge() local
62 ptrs.push_back(ptr); in RunMalloptPurge()
67 for (auto ptr : ptrs) { in RunMalloptPurge()
70 ptrs.clear(); in RunMalloptPurge()
Dstdlib_benchmark.cpp104 void* ptrs[numAllocs]; in MallocMultiple() local
107 benchmark::DoNotOptimize(ptrs[i] = reinterpret_cast<uint8_t*>(malloc(nbytes))); in MallocMultiple()
108 MakeAllocationResident(ptrs[i], nbytes, pagesize); in MallocMultiple()
112 free(ptrs[i]); in MallocMultiple()
/bionic/tests/
Dmalloc_test.cpp834 void* ptrs[kMaxAllocs] = {}; in TEST() local
838 ptrs[i] = malloc(size); in TEST()
839 ASSERT_TRUE(ptrs[i] != nullptr); in TEST()
842 size_t usable_size = malloc_usable_size(ptrs[i]); in TEST()
852 for (void* ptr : ptrs) { in TEST()
877 void* ptrs[kMaxAllocs] = {}; in TEST() local
895 ptrs[i] = malloc(size); in TEST()
896 ASSERT_TRUE(ptrs[i] != nullptr); in TEST()
914 size_t usable_size = malloc_usable_size(ptrs[i]); in TEST()
924 for (void* ptr : ptrs) { in TEST()
[all …]
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp2636 static void AllocPtrsWithBacktrace(std::vector<void*>* ptrs) { in AllocPtrsWithBacktrace() argument
2641 ptrs->push_back(ptr); in AllocPtrsWithBacktrace()
2647 ptrs->push_back(ptr); in AllocPtrsWithBacktrace()
2653 ptrs->push_back(ptr); in AllocPtrsWithBacktrace()
2674 std::vector<void*> ptrs; in TEST_F() local
2675 AllocPtrsWithBacktrace(&ptrs); in TEST_F()
2688 for (auto ptr : ptrs) { in TEST_F()
2691 ptrs.clear(); in TEST_F()
2706 std::vector<void*> ptrs; in TEST_F() local
2707 AllocPtrsWithBacktrace(&ptrs); in TEST_F()
[all …]
/bionic/libc/kernel/uapi/linux/
Dbtrfs_tree.h191 struct btrfs_key_ptr ptrs[]; member