mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-27 04:00:37 +00:00
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:
parent
d469c5d3e4
commit
2250bd69ee
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user