Lines Matching refs:heap_
24 MEM_ALLOCATE_AND_GC_TRACE(heap_->GetEcmaVM(), ParallelEvacuatorInitialize);
25 waterLine_ = heap_->GetNewSpace()->GetWaterLine();
26 if (heap_->IsEdenMark()) {
27 heap_->ReleaseEdenAllocator();
29 ASSERT(heap_->IsYoungMark() || heap_->IsFullMark());
30 heap_->SwapNewSpace();
32 allocator_ = new TlabAllocator(heap_);
39 MEM_ALLOCATE_AND_GC_TRACE(heap_->GetEcmaVM(), ParallelEvacuatorFinalize);
65 heap_->GetEcmaVM()->GetPGOProfiler()->UpdateTrackSpaceFlag(trackInfo, RegionSpaceFlag::IN_OLD_SPACE);
74 TRACE_GC(GCStats::Scope::ScopeId::EvacuateSpace, heap_->GetEcmaVM()->GetEcmaGCStats());
76 MEM_ALLOCATE_AND_GC_TRACE(heap_->GetEcmaVM(), ParallelEvacuator);
78 if (heap_->IsEdenMark()) {
79 heap_->GetEdenSpace()->EnumerateRegions([this, &workloadSet](Region *current) {
82 } else if (heap_->IsConcurrentFullMark() || heap_->IsYoungMark()) {
83 heap_->GetEdenSpace()->EnumerateRegions([this, &workloadSet](Region *current) {
86 heap_->GetFromSpaceDuringEvacuation()->EnumerateRegions([this, &workloadSet](Region *current) {
89 heap_->GetOldSpace()->EnumerateCollectRegionSet([this, &workloadSet](Region *current) {
94 if (heap_->IsParallelGCEnabled()) {
101 std::make_unique<EvacuationTask>(heap_->GetJSThread()->GetThreadId(), i, this));
107 GCStats::Scope sp2(GCStats::Scope::ScopeId::EvacuateRegion, heap_->GetEcmaVM()->GetEcmaGCStats());
112 GCStats::Scope sp2(GCStats::Scope::ScopeId::WaitFinish, heap_->GetEcmaVM()->GetEcmaGCStats());
116 if (heap_->GetJSThread()->IsPGOProfilerEnable()) {
143 ProcessQueue *queue = heap_->GetWorkManager()->GetWeakReferenceQueue(i);
152 ASSERT(heap_->IsConcurrentFullMark());
169 bool pgoEnabled = heap_->GetJSThread()->IsPGOProfilerEnable();
170 bool inHeapProfiler = heap_->InHeapProfiler();
209 heap_->OnMoveEvent(reinterpret_cast<uintptr_t>(mem), reinterpret_cast<TaggedObject *>(address), size);
233 TRACE_GC(GCStats::Scope::ScopeId::UpdateReference, heap_->GetEcmaVM()->GetEcmaGCStats());
234 MEM_ALLOCATE_AND_GC_TRACE(heap_->GetEcmaVM(), ParallelUpdateReference);
240 if (heap_->IsEdenMark()) {
241 heap_->GetNewSpace()->EnumerateRegions([&]([[maybe_unused]] Region *current) {
246 heap_->GetNewSpace()->EnumerateRegions([&](Region *current) {
250 this, current, heap_->IsYoungMark()));
254 std::make_unique<UpdateNewRegionWorkload>(this, current, heap_->IsYoungMark()));
259 heap_->EnumerateOldSpaceRegions([this, &oldRegionCount, &workloadSet](Region *current) {
263 workloadSet.Add(std::make_unique<UpdateRSetWorkload>(this, current, heap_->IsEdenMark()));
266 heap_->EnumerateSnapshotSpaceRegions([this, &workloadSet](Region *current) {
267 workloadSet.Add(std::make_unique<UpdateRSetWorkload>(this, current, heap_->IsEdenMark()));
275 if (heap_->IsParallelGCEnabled()) {
280 std::make_unique<UpdateReferenceTask>(heap_->GetJSThread()->GetThreadId(), this));
284 GCStats::Scope sp2(GCStats::Scope::ScopeId::UpdateRoot, heap_->GetEcmaVM()->GetEcmaGCStats());
289 GCStats::Scope sp2(GCStats::Scope::ScopeId::UpdateWeekRef, heap_->GetEcmaVM()->GetEcmaGCStats());
290 if (heap_->IsEdenMark()) {
292 } else if (heap_->IsYoungMark()) {
299 GCStats::Scope sp2(GCStats::Scope::ScopeId::ProceeWorkload, heap_->GetEcmaVM()->GetEcmaGCStats());\
307 MEM_ALLOCATE_AND_GC_TRACE(heap_->GetEcmaVM(), UpdateRoot);
324 ObjectXRay::VisitVMRoots(heap_->GetEcmaVM(), gcUpdateYoung, gcUpdateRangeYoung, gcUpdateDerived,
332 ProcessQueue *queue = heap_->GetWorkManager()->GetWeakReferenceQueue(i);
350 MEM_ALLOCATE_AND_GC_TRACE(heap_->GetEcmaVM(), UpdateWeakReference);
353 bool isFullMark = heap_->IsConcurrentFullMark();
354 bool isEdenMark = heap_->IsEdenMark();
396 heap_->GetEcmaVM()->GetJSThread()->IterateWeakEcmaGlobalStorage(gcUpdateWeak);
397 heap_->GetEcmaVM()->ProcessReferences(gcUpdateWeak);
398 heap_->GetEcmaVM()->GetJSThread()->UpdateJitCodeMapReference(gcUpdateWeak);
404 MEM_ALLOCATE_AND_GC_TRACE(heap_->GetEcmaVM(), UpdateWeakReference);
447 heap_->GetEcmaVM()->GetJSThread()->IterateWeakEcmaGlobalStorage(gcUpdateWeak);
448 heap_->GetEcmaVM()->ProcessReferences(gcUpdateWeak);
449 heap_->GetEcmaVM()->GetJSThread()->UpdateJitCodeMapReference(gcUpdateWeak);
460 if (heap_->GetSweeper()->IsSweeping()) {
470 if (heap_->IsYoungMark()) {
503 Region *current = heap_->GetNewSpace()->GetCurrentRegion();
507 auto top = heap_->GetNewSpace()->GetTop();
548 FreeObject::FillFreeObject(heap_, freeStart, freeSize);
556 FreeObject::FillFreeObject(heap_, freeStart, freeEnd - freeStart);
580 MEM_ALLOCATE_AND_GC_TRACE(heap_->GetEcmaVM(), WaitUpdateFinished);
685 allocator_ = new TlabAllocator(evacuator->heap_);