Home
last modified time | relevance | path

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

/system/core/libmemunreachable/tests/
DLeakFolding_test.cpp26 LeakFoldingTest() : disable_malloc_(), heap_() {} in LeakFoldingTest()
29 ASSERT_TRUE(heap_.empty()); in TearDown()
37 Heap heap_; member in LeakFoldingTest
48 HeapWalker heap_walker(heap_); in TEST_F()
52 LeakFolding folding(heap_, heap_walker); in TEST_F()
56 allocator::vector<LeakFolding::Leak> leaked(heap_); in TEST_F()
72 HeapWalker heap_walker(heap_); in TEST_F()
77 LeakFolding folding(heap_, heap_walker); in TEST_F()
81 allocator::vector<LeakFolding::Leak> leaked(heap_); in TEST_F()
101 HeapWalker heap_walker(heap_); in TEST_F()
[all …]
DHeapWalker_test.cpp28 HeapWalkerTest() : disable_malloc_(), heap_() {} in HeapWalkerTest()
31 ASSERT_TRUE(heap_.empty()); in TearDown()
39 Heap heap_; member in HeapWalkerTest
43 HeapWalker heap_walker(heap_); in TEST_F()
52 HeapWalker heap_walker(heap_); in TEST_F()
66 HeapWalker heap_walker(heap_); in TEST_F()
83 HeapWalker heap_walker(heap_); in TEST_F()
88 allocator::vector<Range> leaked(heap_); in TEST_F()
110 HeapWalker heap_walker(heap_); in TEST_F()
116 allocator::vector<Range> leaked(heap_); in TEST_F()
[all …]
/system/core/libmemunreachable/
DAllocator.h113 heap_(heap) { in STLAllocator()
119 heap_(other.heap_) { in STLAllocator()
126 return reinterpret_cast<T*>(heap_.allocate(n * sizeof(T))); in allocate()
130 heap_.deallocate(ptr); in deallocate()
135 return heap_ == other.heap_;
146 Heap heap_;
172 using STLAllocator<T>::heap_;
178 heap_.deallocate(ptr); in deallocate()
185 return heap_.template make_shared<T>(std::forward<Args>(args)...); in make_shared()
192 return heap_.template make_unique<T>(std::forward<Args>(args)...); in make_unique()
DAllocator.cpp190 return heap_; in heap()
196 HeapImpl* heap_; member in Chunk
241 node_(this), heap_(heap), bucket_(bucket), allocation_size_( in Chunk()
272 heap_->MoveToFullList(this, bucket_); in Alloc()
296 heap_->MoveToFreeList(this, bucket_); in Free()