Home
last modified time | relevance | path

Searched refs:heap_ (Results 1 – 4 of 4) sorted by relevance

/system/core/libmemunreachable/tests/
DLeakFolding_test.cpp28 LeakFoldingTest() : disable_malloc_(), heap_() {} in LeakFoldingTest()
31 ASSERT_TRUE(heap_.empty()); in TearDown()
39 Heap heap_; member in android::LeakFoldingTest
50 HeapWalker heap_walker(heap_); in TEST_F()
54 LeakFolding folding(heap_, heap_walker); in TEST_F()
58 allocator::vector<LeakFolding::Leak> leaked(heap_); in TEST_F()
74 HeapWalker heap_walker(heap_); in TEST_F()
79 LeakFolding folding(heap_, heap_walker); in TEST_F()
83 allocator::vector<LeakFolding::Leak> leaked(heap_); in TEST_F()
103 HeapWalker heap_walker(heap_); in TEST_F()
[all …]
DHeapWalker_test.cpp30 HeapWalkerTest() : disable_malloc_(), heap_() {} in HeapWalkerTest()
33 ASSERT_TRUE(heap_.empty()); in TearDown()
41 Heap heap_; member in android::HeapWalkerTest
45 HeapWalker heap_walker(heap_); in TEST_F()
54 HeapWalker heap_walker(heap_); in TEST_F()
68 HeapWalker heap_walker(heap_); in TEST_F()
77 HeapWalker heap_walker(heap_); in TEST_F()
103 HeapWalker heap_walker(heap_); in TEST_F()
108 allocator::vector<Range> leaked(heap_); in TEST_F()
130 HeapWalker heap_walker(heap_); in TEST_F()
[all …]
/system/core/libmemunreachable/
DAllocator.h110 heap_(heap) {} in STLAllocator()
116 heap_(other.heap_) {} in STLAllocator()
121 T* allocate(std::size_t n) { return reinterpret_cast<T*>(heap_.allocate(n * sizeof(T))); } in allocate()
123 void deallocate(T* ptr, std::size_t) { heap_.deallocate(ptr); } in deallocate()
127 return heap_ == other.heap_;
138 Heap heap_;
163 using STLAllocator<T>::heap_;
166 void deallocate(void* ptr) { heap_.deallocate(ptr); } in deallocate()
172 return heap_.template make_shared<T>(std::forward<Args>(args)...); in make_shared()
179 return heap_.template make_unique<T>(std::forward<Args>(args)...); in make_unique()
DAllocator.cpp184 HeapImpl* heap() { return heap_; } in heap()
189 HeapImpl* heap_; member in android::Chunk
232 heap_(heap), in Chunk()
265 heap_->MoveToFullList(this, bucket_); in Alloc()
289 heap_->MoveToFreeList(this, bucket_); in Free()