/aosp12/system/memory/libmemunreachable/tests/ |
H A D | LeakFolding_test.cpp | 31 ASSERT_TRUE(heap_.empty()); in TearDown() 39 Heap heap_; member in android::LeakFoldingTest 50 HeapWalker heap_walker(heap_); in TEST_F() 74 HeapWalker heap_walker(heap_); in TEST_F() 103 HeapWalker heap_walker(heap_); in TEST_F() 133 HeapWalker heap_walker(heap_); in TEST_F() 164 HeapWalker heap_walker(heap_); in TEST_F() 204 HeapWalker heap_walker(heap_); in TEST_F() 242 HeapWalker heap_walker(heap_); in TEST_F() 275 HeapWalker heap_walker(heap_); in TEST_F() [all …]
|
H A D | HeapWalker_test.cpp | 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() 130 HeapWalker heap_walker(heap_); in TEST_F() 158 HeapWalker heap_walker(heap_); in TEST_F() 183 HeapWalker heap_walker(heap_); in TEST_F() [all …]
|
/aosp12/system/memory/libmemunreachable/ |
H A D | Allocator.h | 110 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()
|
H A D | Allocator.cpp | 184 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()
|
/aosp12/art/runtime/gc/collector/ |
H A D | concurrent_copying.cc | 332 heap_->non_moving_space_->Limit() - heap_->non_moving_space_->Begin()); in CreateInterRegionRefBitmaps() 881 heap_->SwapStacks(); in SwapStacks() 1785 heap_->rb_table_->ClearAll(); in DisableMarking() 1884 return heap_->live_stack_.get(); in GetLiveStack() 2000 for (auto* it = heap_->allocation_stack_->Begin(), *end = heap_->allocation_stack_->End(); in VerifyNoFromSpaceReferences() 2679 add_gc_range(heap_->GetCardTable()->MemMapBegin(), heap_->GetCardTable()->MemMapSize()); in CaptureRssAtPeak() 2732 heap_->UnBindBitmaps(); in ReclaimPhase() 3047 DCHECK(heap_->GetLargeObjectsSpace() && heap_->GetLargeObjectsSpace()->Contains(obj)) in LogFromSpaceRefHolder() 3081 DCHECK(heap_->GetLargeObjectsSpace() && heap_->GetLargeObjectsSpace()->Contains(from_ref)) in IsMarkedInNonMovingSpace() 3454 if (heap_->use_tlab_) { in Copy() [all …]
|
H A D | semi_space.cc | 128 mark_stack_ = heap_->GetMarkStack(); in InitializePhase() 141 mark_bitmap_ = heap_->GetMarkBitmap(); in InitializePhase() 181 heap_->GetCardTable()->ClearCardTable(); in MarkingPhase() 186 heap_->RevokeAllThreadLocalAllocationStacks(self_); in MarkingPhase() 188 heap_->SwapStacks(); in MarkingPhase() 232 heap_->PreSweepingGcVerification(this); in MarkingPhase() 234 heap_->SwapSemiSpaces(); in MarkingPhase() 284 heap_->MarkAllocStackAsLive(live_stack); in MarkReachableObjects() 287 for (auto& space : heap_->GetContinuousSpaces()) { in MarkReachableObjects() 305 DCHECK(space == heap_->GetNonMovingSpace() || space == heap_->GetPrimaryFreeListSpace()) in MarkReachableObjects() [all …]
|
H A D | mark_sweep.cc | 118 mark_stack_ = heap_->GetMarkStack(); in InitializePhase() 139 mark_bitmap_ = heap_->GetMarkBitmap(); in InitializePhase() 202 heap_->SwapStacks(); in PausePhase() 208 heap_->PreSweepingGcVerification(this); in PausePhase() 284 heap_->ProcessCards(GetTimings(), in MarkingPhase() 374 if (space != heap_->GetNonMovingSpace()) { in FindDefaultSpaceBitmap() 380 << heap_->DumpSpaces(); in FindDefaultSpaceBitmap() 877 return (paused ? heap_->GetParallelGCThreadCount() : heap_->GetConcGCThreadCount()) + 1; in GetThreadCount() 1121 if (!heap_->GetLiveBitmap()->Test(obj)) { in VerifyIsLive() 1316 heap_->MarkAllocStackAsLive(live_stack); in Sweep() [all …]
|
H A D | garbage_collector.cc | 68 : heap_(heap), in GarbageCollector() 291 return heap_->GetCurrentGcIteration(); in GetCurrentIteration() 294 return heap_->GetCurrentGcIteration(); in GetCurrentIteration() 299 heap_->RecordFree(freed.objects, freed.bytes); in RecordFree() 303 heap_->RecordFree(freed.objects, freed.bytes); in RecordFreeLOS()
|
H A D | concurrent_copying-inl.h | 136 DCHECK(heap_->collector_type_ == kCollectorTypeCC); in Mark() 169 DCHECK(region_space_->IsInToSpace(to_ref) || heap_->non_moving_space_->HasAddress(to_ref)) in Mark() 187 heap_->GetVerification()->LogHeapCorruption(holder, offset, from_ref, /* fatal= */ true); in Mark()
|
H A D | garbage_collector.h | 73 return heap_; in GetHeap() 157 Heap* const heap_; variable
|
H A D | mark_sweep-inl.h | 36 DCHECK(IsMarked(obj)) << "Scanning unmarked object " << obj << "\n" << heap_->DumpSpaces(); in ScanObjectVisit()
|
/aosp12/art/runtime/gc/accounting/ |
H A D | remembered_set.h | 51 : name_(name), heap_(heap), space_(space) {} in RememberedSet() 68 return heap_; in GetHeap() 77 Heap* const heap_; variable
|
H A D | mod_union_table.cc | 346 CHECK(heap_->IsLiveObjectLocked(ref->AsMirrorPtr())); in Verify() 351 CardTable* card_table = heap_->GetCardTable(); in Verify() 368 CardTable* card_table = heap_->GetCardTable(); in Dump() 389 CardTable* const card_table = heap_->GetCardTable(); in VisitObjects() 414 CardTable* const card_table = heap_->GetCardTable(); in UpdateAndMarkReferences() 430 heap_->FindContinuousSpaceFromObject(reinterpret_cast<mirror::Object*>(start), false); in UpdateAndMarkReferences() 546 heap_->GetBootImageSpaces().empty() ? nullptr : heap_->GetBootImageSpaces()[0]; in UpdateAndMarkReferences() 599 cleared_cards_.insert(heap_->GetCardTable()->CardFromAddr(reinterpret_cast<void*>(addr))); in SetCards() 604 auto* card_ptr = heap_->GetCardTable()->CardFromAddr(reinterpret_cast<void*>(addr)); in ContainsCardFor()
|
H A D | mod_union_table.h | 61 heap_(heap), in ModUnionTable() 105 return heap_; in GetHeap() 114 Heap* const heap_; variable
|
H A D | remembered_set.cc | 136 CardTable* card_table = heap_->GetCardTable(); in UpdateAndMarkReferences() 165 CardTable* card_table = heap_->GetCardTable(); in Dump() 176 CardTable* card_table = heap_->GetCardTable(); in AssertAllDirtyCardsAreWithinSpace()
|
H A D | heap_bitmap.h | 58 explicit HeapBitmap(Heap* heap) : heap_(heap) {} in HeapBitmap() 61 const Heap* const heap_;
|
/aosp12/art/runtime/gc/ |
H A D | verification.h | 40 explicit Verification(gc::Heap* heap) : heap_(heap) {} in Verification() 73 gc::Heap* const heap_;
|
H A D | heap.h | 1468 Heap* const heap_; 1475 : heap_(heap), in ScopedDisableRosAllocVerification() 1476 orig_verify_pre_gc_(heap_->verify_pre_gc_rosalloc_), in ScopedDisableRosAllocVerification() 1477 orig_verify_pre_sweeping_(heap_->verify_pre_sweeping_rosalloc_), in ScopedDisableRosAllocVerification() 1478 orig_verify_post_gc_(heap_->verify_post_gc_rosalloc_) { in ScopedDisableRosAllocVerification() 1479 heap_->verify_pre_gc_rosalloc_ = false; in ScopedDisableRosAllocVerification() 1480 heap_->verify_pre_sweeping_rosalloc_ = false; in ScopedDisableRosAllocVerification() 1481 heap_->verify_post_gc_rosalloc_ = false; in ScopedDisableRosAllocVerification() 1484 heap_->verify_pre_gc_rosalloc_ = orig_verify_pre_gc_; in ~ScopedDisableRosAllocVerification() 1485 heap_->verify_pre_sweeping_rosalloc_ = orig_verify_pre_sweeping_; in ~ScopedDisableRosAllocVerification() [all …]
|
H A D | verification.cc | 68 space::Space* const space = heap_->FindSpaceFromAddress(addr); in DumpObjectInfo() 72 accounting::CardTable* card_table = heap_->GetCardTable(); in DumpObjectInfo() 121 space::Space* const space = heap_->FindSpaceFromAddress(addr); in IsAddressInHeapSpace()
|
H A D | heap.cc | 2870 return heap_->IsLiveObjectLocked(obj, true, false, true); in IsLive() 2912 accounting::CardTable* card_table = heap_->GetCardTable(); in VerifyReference() 2918 if (heap_->IsValidObjectAddress(obj->GetClass())) { in VerifyReference() 2952 heap_->GetLiveBitmap()->GetContinuousSpaceBitmap(obj); in VerifyReference() 2994 Heap* const heap_; member in art::gc::VerifyReferenceVisitor 3026 Heap* const heap_; member in art::gc::VerifyObjectVisitor 3116 : heap_(heap), failed_(failed) { in VerifyReferenceCardVisitor() 3147 if (heap_->GetLiveBitmap()->Test(obj)) { in operator ()() 3182 Heap* const heap_; member in art::gc::VerifyReferenceCardVisitor 3189 : heap_(heap), in VerifyLiveStackReferences() [all …]
|
/aosp12/art/runtime/ |
H A D | runtime.cc | 248 heap_(nullptr), in Runtime() 377 (heap_->GetPostGCLastProcessCpuTime() - heap_->GetProcessCpuStartTime()); in ~Runtime() 441 heap_->DeleteThreadPool(); in ~Runtime() 500 delete heap_; in ~Runtime() 501 heap_ = nullptr; in ~Runtime() 698 heap_->PreZygoteFork(); in PreZygoteFork() 1094 heap_->CreateThreadPool(); in InitNonZygoteOrPostFork() 1111 heap_->ResetGcPerformanceInfo(); in InitNonZygoteOrPostFork() 2409 heap_->VisitAllocationRecords(visitor); in VisitConcurrentRoots() 2542 heap_->DisallowNewAllocationRecords(); in DisallowNewSystemWeaks() [all …]
|
H A D | transaction.cc | 47 heap_(Runtime::Current()->GetHeap()), in Transaction() 128 if (heap_->ObjectIsInBootImageSpace(obj)) { in WriteConstraint()
|
H A D | transaction.h | 318 gc::Heap* const heap_; variable
|
H A D | runtime.h | 323 return heap_; in GetHeap() 1151 gc::Heap* heap_; variable
|
/aosp12/art/openjdkjvmti/ |
H A D | ti_redefine.cc | 2255 : heap_(heap), self_(self) { in ScopedDisableConcurrentAndMovingGc() 2256 if (heap_->IsGcConcurrentAndMoving()) { in ScopedDisableConcurrentAndMovingGc() 2257 heap_->IncrementDisableMovingGC(self_); in ScopedDisableConcurrentAndMovingGc() 2262 if (heap_->IsGcConcurrentAndMoving()) { in ~ScopedDisableConcurrentAndMovingGc() 2263 heap_->DecrementDisableMovingGC(self_); in ~ScopedDisableConcurrentAndMovingGc() 2267 art::gc::Heap* heap_; member in openjdkjvmti::ScopedDisableConcurrentAndMovingGc
|