fix: trackinfo before gc update reference

Issue: https: //gitee.com/openharmony/arkcompiler_ets_runtime/issues/IB278C?from=project-issue
Signed-off-by: Like <zhenglike@huawei.com>
Change-Id: I62f356d0dde28b97e80de7950f3b53ceabfa31f8
This commit is contained in:
Like 2024-11-05 15:07:20 +08:00
parent d469c5d3e4
commit 2250bd69ee

View File

@ -112,10 +112,6 @@ void ParallelEvacuator::EvacuateSpace()
GCStats::Scope sp2(GCStats::Scope::ScopeId::WaitFinish, heap_->GetEcmaVM()->GetEcmaGCStats());
WaitFinished();
}
if (heap_->GetJSThread()->IsPGOProfilerEnable()) {
UpdateTrackInfo();
}
}
bool ParallelEvacuator::EvacuateSpace(TlabAllocator *allocator, uint32_t threadIndex, uint32_t idOrder, bool isMain)
@ -296,10 +292,14 @@ void ParallelEvacuator::UpdateReference()
}
}
{
GCStats::Scope sp2(GCStats::Scope::ScopeId::ProceeWorkload, heap_->GetEcmaVM()->GetEcmaGCStats());\
GCStats::Scope sp2(GCStats::Scope::ScopeId::ProceeWorkload, heap_->GetEcmaVM()->GetEcmaGCStats());
ProcessWorkloads(true);
}
WaitFinished();
if (heap_->GetJSThread()->IsPGOProfilerEnable()) {
UpdateTrackInfo();
}
}
void ParallelEvacuator::UpdateRoot()