Home
last modified time | relevance | path

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

/art/runtime/gc/collector/
Dgarbage_collector.cc62 : heap_(heap), in GarbageCollector()
127 heap_->GetLiveBitmap()->ReplaceBitmap(live_bitmap, mark_bitmap); in SwapBitmaps()
128 heap_->GetMarkBitmap()->ReplaceBitmap(mark_bitmap, live_bitmap); in SwapBitmaps()
138 heap_->GetLiveBitmap()->ReplaceLargeObjectBitmap(live_set, mark_set); in SwapBitmaps()
139 heap_->GetMarkBitmap()->ReplaceLargeObjectBitmap(mark_set, live_set); in SwapBitmaps()
172 return heap_->GetCurrentGcIteration(); in GetCurrentIteration()
175 return heap_->GetCurrentGcIteration(); in GetCurrentIteration()
180 heap_->RecordFree(freed.objects, freed.bytes); in RecordFree()
184 heap_->RecordFree(freed.objects, freed.bytes); in RecordFreeLOS()
Dmark_compact.cc131 mark_stack_ = heap_->GetMarkStack(); in InitializePhase()
137 mark_bitmap_ = heap_->GetMarkBitmap(); in InitializePhase()
143 heap_->GetReferenceProcessor()->ProcessReferences( in ProcessReferences()
198 heap_->ProcessCards(GetTimings(), false, false, true); in MarkingPhase()
202 heap_->GetCardTable()->ClearCardTable(); in MarkingPhase()
207 heap_->RevokeAllThreadLocalAllocationStacks(self); in MarkingPhase()
210 heap_->SwapStacks(self); in MarkingPhase()
234 for (auto& space : heap_->GetContinuousSpaces()) { in UpdateAndMarkModUnion()
237 accounting::ModUnionTable* table = heap_->FindModUnionTableFromSpace(space); in UpdateAndMarkModUnion()
251 accounting::ObjectStack* live_stack = heap_->GetLiveStack(); in MarkReachableObjects()
[all …]
Dsemi_space.cc135 mark_stack_ = heap_->GetMarkStack(); in InitializePhase()
149 mark_bitmap_ = heap_->GetMarkBitmap(); in InitializePhase()
219 heap_->ProcessCards(GetTimings(), kUseRememberedSet && generational_, false, true); in MarkingPhase()
223 heap_->GetCardTable()->ClearCardTable(); in MarkingPhase()
228 heap_->RevokeAllThreadLocalAllocationStacks(self_); in MarkingPhase()
230 heap_->SwapStacks(self_); in MarkingPhase()
268 heap_->PreSweepingGcVerification(this); in MarkingPhase()
270 heap_->SwapSemiSpaces(); in MarkingPhase()
326 accounting::ObjectStack* live_stack = heap_->GetLiveStack(); in MarkReachableObjects()
327 heap_->MarkAllocStackAsLive(live_stack); in MarkReachableObjects()
[all …]
Dconcurrent_copying.cc44 rb_table_(heap_->GetReadBarrierTable()), in ConcurrentCopying()
105 for (const auto& space : heap_->GetContinuousSpaces()) { in BindBitmaps()
233 ThreadFlipVisitor thread_flip_visitor(this, heap_->use_tlab_); in FlipThreadRoots()
251 heap_->SwapStacks(self); in SwapStacks()
256 live_stack_freeze_size_ = heap_->GetLiveStack()->Size(); in RecordLiveStackFreezeSize()
274 DCHECK(collector_->heap_->GetMarkBitmap()->Test(obj)) in operator ()()
327 gc::space::ImageSpace* image = heap_->GetImageSpace(); in MarkingPhase()
356 for (auto& space : heap_->GetContinuousSpaces()) { in MarkingPhase()
417 heap_->rb_table_->ClearAll(); in MarkingPhase()
418 DCHECK(heap_->rb_table_->IsAllCleared()); in MarkingPhase()
[all …]
Dmark_sweep.cc117 mark_stack_ = heap_->GetMarkStack(); in InitializePhase()
136 mark_bitmap_ = heap_->GetMarkBitmap(); in InitializePhase()
197 heap_->SwapStacks(self); in PausePhase()
198 live_stack_freeze_size_ = heap_->GetLiveStack()->Size(); in PausePhase()
203 heap_->PreSweepingGcVerification(this); in PausePhase()
221 heap_->ProcessCards(GetTimings(), false, true, false); in PreCleanCards()
249 heap_->RevokeAllThreadLocalAllocationStacks(self); in RevokeAllThreadLocalAllocationStacks()
260 heap_->ProcessCards(GetTimings(), false, true, GetGcType() != kGcTypeSticky); in MarkingPhase()
269 for (const auto& space : heap_->GetContinuousSpaces()) { in UpdateAndMarkModUnion()
274 accounting::ModUnionTable* mod_union_table = heap_->FindModUnionTableFromSpace(space); in UpdateAndMarkModUnion()
[all …]
Dgarbage_collector.h138 return heap_; in GetHeap()
184 Heap* const heap_; variable
Dmark_sweep-inl.h34 DCHECK(IsMarked(obj)) << "Scanning unmarked object " << obj << "\n" << heap_->DumpSpaces(); in ScanObjectVisit()
/art/runtime/gc/accounting/
Dremembered_set.h50 : name_(name), heap_(heap), space_(space) {} in RememberedSet()
68 return heap_; in GetHeap()
77 Heap* const heap_; variable
Dmod_union_table.h62 heap_(heap), in ModUnionTable()
96 return heap_; in GetHeap()
104 Heap* const heap_; variable
Dmod_union_table.cc266 CHECK(heap_->IsLiveObjectLocked(ref->AsMirrorPtr())); in Verify()
271 CardTable* card_table = heap_->GetCardTable(); in Verify()
288 CardTable* card_table = heap_->GetCardTable(); in Dump()
310 CardTable* card_table = heap_->GetCardTable(); in UpdateAndMarkReferences()
320 auto* space = heap_->FindContinuousSpaceFromObject(reinterpret_cast<Object*>(start), false); in UpdateAndMarkReferences()
405 auto* image_space = heap_->GetImageSpace(); in UpdateAndMarkReferences()
442 cleared_cards_.insert(heap_->GetCardTable()->CardFromAddr(reinterpret_cast<void*>(addr))); in SetCards()
447 auto* card_ptr = heap_->GetCardTable()->CardFromAddr(reinterpret_cast<void*>(addr)); in ContainsCardFor()
Dremembered_set.cc126 CardTable* card_table = heap_->GetCardTable(); in UpdateAndMarkReferences()
155 CardTable* card_table = heap_->GetCardTable(); in Dump()
166 CardTable* card_table = heap_->GetCardTable(); in AssertAllDirtyCardsAreWithinSpace()
Dheap_bitmap.h67 explicit HeapBitmap(Heap* heap) : heap_(heap) {} in HeapBitmap()
70 const Heap* const heap_;
/art/patchoat/
Dpatchoat.h63 : oat_file_(oat_file), image_(nullptr), bitmap_(nullptr), heap_(nullptr), delta_(delta), in PatchOat()
67 : image_(image), bitmap_(bitmap), heap_(heap), in PatchOat()
72 : oat_file_(oat_file), image_(image), bitmap_(bitmap), heap_(heap), in PatchOat()
132 DCHECK_GT(reinterpret_cast<uintptr_t>(obj), reinterpret_cast<uintptr_t>(heap_->Begin())); in RelocatedCopyOf()
133 DCHECK_LT(reinterpret_cast<uintptr_t>(obj), reinterpret_cast<uintptr_t>(heap_->End())); in RelocatedCopyOf()
135 reinterpret_cast<uintptr_t>(obj) - reinterpret_cast<uintptr_t>(heap_->Begin()); in RelocatedCopyOf()
196 const MemMap* const heap_; variable
Dpatchoat.cc423 auto* src = reinterpret_cast<ArtField*>(heap_->Begin() + section.Offset() + pos); in PatchArtFields()
434 auto* src = reinterpret_cast<ArtMethod*>(heap_->Begin() + section.Offset() + pos); in PatchArtMethods()
543 uintptr_t begin = reinterpret_cast<uintptr_t>(heap_->Begin()); in InHeap()
544 uintptr_t end = reinterpret_cast<uintptr_t>(heap_->End()); in InHeap()
/art/runtime/gc/
Dheap.h1057 Heap* const heap_;
1064 : heap_(heap), in ScopedDisableRosAllocVerification()
1065 orig_verify_pre_gc_(heap_->verify_pre_gc_rosalloc_), in ScopedDisableRosAllocVerification()
1066 orig_verify_pre_sweeping_(heap_->verify_pre_sweeping_rosalloc_), in ScopedDisableRosAllocVerification()
1067 orig_verify_post_gc_(heap_->verify_post_gc_rosalloc_) { in ScopedDisableRosAllocVerification()
1068 heap_->verify_pre_gc_rosalloc_ = false; in ScopedDisableRosAllocVerification()
1069 heap_->verify_pre_sweeping_rosalloc_ = false; in ScopedDisableRosAllocVerification()
1070 heap_->verify_post_gc_rosalloc_ = false; in ScopedDisableRosAllocVerification()
1073 heap_->verify_pre_gc_rosalloc_ = orig_verify_pre_gc_; in ~ScopedDisableRosAllocVerification()
1074 heap_->verify_pre_sweeping_rosalloc_ = orig_verify_pre_sweeping_; in ~ScopedDisableRosAllocVerification()
[all …]
Dheap.cc2600 : heap_(heap), fail_count_(fail_count), verify_referent_(verify_referent) {} in VerifyReferenceVisitor()
2620 return heap_->IsLiveObjectLocked(obj, true, false, true); in IsLive()
2648 accounting::CardTable* card_table = heap_->GetCardTable(); in VerifyReference()
2649 accounting::ObjectStack* alloc_stack = heap_->allocation_stack_.get(); in VerifyReference()
2650 accounting::ObjectStack* live_stack = heap_->live_stack_.get(); in VerifyReference()
2654 if (heap_->IsValidObjectAddress(obj->GetClass())) { in VerifyReference()
2661 space::ContinuousSpace* ref_space = heap_->FindContinuousSpaceFromObject(ref, true); in VerifyReference()
2673 if (ref->GetClass() != nullptr && heap_->IsValidObjectAddress(ref->GetClass()) && in VerifyReference()
2688 heap_->GetLiveBitmap()->GetContinuousSpaceBitmap(obj); in VerifyReference()
2729 Heap* const heap_; member in art::gc::VerifyReferenceVisitor
[all …]
Dheap-inl.h382 : heap_(heap), allocated_obj_ptr_(allocated_obj_ptr), in AllocationTimer()
391heap_->total_allocation_time_.FetchAndAddSequentiallyConsistent(allocation_end_time - allocation_s… in ~AllocationTimer()
/art/runtime/
Druntime.cc159 heap_(nullptr), in Runtime()
208 heap_->DumpGcPerformanceInfo(LOG(INFO)); in ~Runtime()
248 heap_->WaitForGcToComplete(gc::kGcCauseBackground, self); in ~Runtime()
249 heap_->DeleteThreadPool(); in ~Runtime()
280 delete heap_; in ~Runtime()
393 heap_->PreZygoteFork(); in PreZygoteFork()
498 gc::space::ImageSpace* image_space = heap_->GetImageSpace(); in Start()
650 heap_->CreateThreadPool(); in DidForkFromZygote()
653 heap_->ResetGcPerformanceInfo(); in DidForkFromZygote()
851 heap_ = new gc::Heap(runtime_options.GetOrDefault(Opt::MemoryInitialSize), in Init()
[all …]
Druntime.h252 return heap_; in GetHeap()
617 gc::Heap* heap_; variable