Home
last modified time | relevance | path

Searched refs:allocs (Results 1 – 2 of 2) sorted by relevance

/bionic/tests/
Dmalloc_iterate_test.cpp48 std::vector<AllocDataType> allocs; member
52 test_data->allocs.resize(test_data->allocs.size() + 1); in AllocPtr()
53 AllocDataType* alloc = &test_data->allocs.back(); in AllocPtr()
63 for (size_t i = 0; i < test_data->allocs.size(); i++) { in FreePtrs()
64 free(test_data->allocs[i].ptr); in FreePtrs()
79 for (size_t i = 0; i < test_data->allocs.size(); i++) { in SavePointers()
80 uintptr_t ptr = reinterpret_cast<uintptr_t>(test_data->allocs[i].ptr); in SavePointers()
82 test_data->allocs[i].count++; in SavePointers()
85 if (max_size > test_data->allocs[i].size) { in SavePointers()
86 test_data->allocs[i].size_reported = test_data->allocs[i].size; in SavePointers()
[all …]
Dcfi_test.cpp41 std::vector<void*> allocs; in test_cfi_slowpath_with_alloc() local
43 allocs.push_back(malloc(4096)); in test_cfi_slowpath_with_alloc()
44 __cfi_slowpath(46, allocs.back()); in test_cfi_slowpath_with_alloc()