Lines Matching refs:heap_
25 FullGC::FullGC(Heap *heap) : heap_(heap), workManager_(heap->GetWorkManager()) {}
29 GCStats *gcStats = heap_->GetEcmaVM()->GetEcmaGCStats();
32 + ";Sensitive" + std::to_string(static_cast<int>(heap_->GetSensitiveStatus()))
33 + ";IsInBackground" + std::to_string(heap_->IsInBackground())
34 + ";Startup" + std::to_string(heap_->OnStartupEvent())
35 + ";Young" + std::to_string(heap_->GetNewSpace()->GetCommittedSize())
36 + ";Old" + std::to_string(heap_->GetOldSpace()->GetCommittedSize())
37 + ";huge" + std::to_string(heap_->GetHugeObjectSpace()->GetCommittedSize())
38 + ";NonMov" + std::to_string(heap_->GetNonMovableSpace()->GetCommittedSize())
39 + ";TotCommit" + std::to_string(heap_->GetCommittedSize()));
41 MEM_ALLOCATE_AND_GC_TRACE(heap_->GetEcmaVM(), FullGC_RunPhases);
43 if (heap_->CheckOngoingConcurrentMarking()) {
45 heap_->GetConcurrentMarker()->Reset(); // HPPGC use mark result to move TaggedObject.
48 if (heap_->GetIncrementalMarker()->IsTriggeredIncrementalMark()) {
50 heap_->ClearIdleTask();
51 heap_->DisableNotifyIdle();
52 heap_->GetIncrementalMarker()->Reset();
59 if (UNLIKELY(heap_->ShouldVerifyHeap())) {
62 Verification(heap_, VerifyKind::VERIFY_SHARED_RSET_POST_FULL_GC).VerifyAll();
68 auto marker = reinterpret_cast<CompressGCMarker*>(heap_->GetCompressGCMarker());
77 TRACE_GC(GCStats::Scope::ScopeId::Initialize, heap_->GetEcmaVM()->GetEcmaGCStats());
78 heap_->Prepare();
83 heap_->EnumerateNonMovableRegions(callback);
84 heap_->GetAppSpawnSpace()->EnumerateRegions([](Region *current) {
88 youngSpaceCommitSize_ = heap_->GetNewSpace()->GetCommittedSize();
89 heap_->SwapNewSpace();
91 heap_->GetCompressGCMarker()->Initialize();
95 oldSpaceCommitSize_ = heap_->GetOldSpace()->GetCommittedSize();
96 nonMoveSpaceCommitSize_ = heap_->GetNonMovableSpace()->GetCommittedSize();
102 TRACE_GC(GCStats::Scope::ScopeId::Mark, heap_->GetEcmaVM()->GetEcmaGCStats());
103 heap_->GetCompressGCMarker()->MarkRoots(MAIN_THREAD_INDEX, VMRootVisitType::UPDATE_ROOT);
104 heap_->GetCompressGCMarker()->ProcessMarkStack(MAIN_THREAD_INDEX);
105 heap_->WaitRunningTaskFinished();
107 heap_->GetCompressGCMarker()->MarkJitCodeMap(MAIN_THREAD_INDEX);
113 TRACE_GC(GCStats::Scope::ScopeId::Sweep, heap_->GetEcmaVM()->GetEcmaGCStats());
116 if (heap_->IsParallelGCEnabled()) {
169 heap_->GetEcmaVM()->GetJSThread()->IterateWeakEcmaGlobalStorage(gcUpdateWeak);
170 heap_->GetEcmaVM()->ProcessReferences(gcUpdateWeak);
172 heap_->GetSweeper()->Sweep(true);
173 heap_->GetSweeper()->PostTask(true);
179 TRACE_GC(GCStats::Scope::ScopeId::Finish, heap_->GetEcmaVM()->GetEcmaGCStats());
181 heap_->SwapOldSpace();
185 heap_->ResumeForAppSpawn();
187 heap_->Resume(FULL_GC);
189 heap_->GetSweeper()->TryFillSweptRegion();
194 auto marker = reinterpret_cast<CompressGCMarker*>(heap_->GetCompressGCMarker());
205 TRACE_GC(GCStats::Scope::ScopeId::ProcessSharedGCRSetWorkList, heap_->GetEcmaVM()->GetEcmaGCStats());
206 heap_->ProcessSharedGCRSetWorkList();