Home
last modified time | relevance | path

Searched refs:heap (Results 1 - 25 of 94) sorted by relevance

1234

/arkcompiler/ets_runtime/ecmascript/tests/
H A Dgc_third_test.cpp41 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); variable
42 heap->GetConcurrentMarker()->EnableConcurrentMarking(EnableConcurrentMarkType::ENABLE);
43 heap->GetSweeper()->EnableConcurrentSweep(EnableConcurrentSweepType::ENABLE);
49 Heap *heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local
50 heap->GetConcurrentMarker()->EnableConcurrentMarking(EnableConcurrentMarkType::CONFIG_DISABLE); in HWTEST_F_L0()
51 auto getSizeAfterCreateAndCallHintGC = [this, heap] (size_t &newSize, size_t &finalSize) -> bool { in HWTEST_F_L0()
58 newSize = heap->GetCommittedSize(); in HWTEST_F_L0()
65 finalSize = heap->GetCommittedSize(); in HWTEST_F_L0()
72 heap->CollectGarbage(TriggerGCType::FULL_GC); in HWTEST_F_L0()
73 heap in HWTEST_F_L0()
138 SharedHeap *heap = SharedHeap::GetInstance(); HWTEST_F_L0() local
144 SharedHeap *heap = SharedHeap::GetInstance(); HWTEST_F_L0() local
150 SharedHeap *heap = SharedHeap::GetInstance(); HWTEST_F_L0() local
156 SharedHeap *heap = SharedHeap::GetInstance(); HWTEST_F_L0() local
163 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
180 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
197 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
216 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
234 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
252 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
267 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
275 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
283 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
291 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
297 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
304 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
313 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
319 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
325 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
331 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
339 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
346 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
353 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
360 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
368 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
376 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
383 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
390 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
396 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
403 SharedHeap *heap = SharedHeap::GetInstance(); HWTEST_F_L0() local
410 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
416 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
424 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
431 SharedHeap *heap = SharedHeap::GetInstance(); HWTEST_F_L0() local
438 SharedHeap *heap = SharedHeap::GetInstance(); HWTEST_F_L0() local
446 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
[all...]
H A Didle_gc_trigger_test.cpp18 #include "ecmascript/mem/heap.h"
19 #include "ecmascript/mem/heap-inl.h"
42 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); variable
43 heap->GetConcurrentMarker()->EnableConcurrentMarking(EnableConcurrentMarkType::ENABLE);
44 heap->GetSweeper()->EnableConcurrentSweep(EnableConcurrentSweepType::ENABLE);
50 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local
52 IdleGCTrigger *trigger = new IdleGCTrigger(heap, sheap, thread); in HWTEST_F_L0()
58 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local
60 heap->GetConcurrentMarker()->Mark(); in HWTEST_F_L0()
61 heap in HWTEST_F_L0()
70 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
78 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
90 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
100 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
110 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
120 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
129 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
140 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
153 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
163 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
175 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
185 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
197 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
213 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
225 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
241 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
250 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
263 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
272 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
280 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
291 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
302 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
310 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
319 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
330 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
341 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
[all...]
H A Dgc_first_test.cpp42 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); variable
43 heap->GetConcurrentMarker()->EnableConcurrentMarking(EnableConcurrentMarkType::ENABLE);
44 heap->GetSweeper()->EnableConcurrentSweep(EnableConcurrentSweepType::ENABLE);
51 auto heap = thread->GetEcmaVM()->GetHeap(); in HWTEST_F_L0() local
52 auto fullGc = heap->GetFullGC(); in HWTEST_F_L0()
54 auto oldSizebase = heap->GetOldSpace()->GetHeapObjectSize(); in HWTEST_F_L0()
61 oldSizeBefore = heap->GetOldSpace()->GetHeapObjectSize(); in HWTEST_F_L0()
65 auto oldSizeAfter = heap->GetOldSpace()->GetHeapObjectSize(); in HWTEST_F_L0()
71 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local
72 EXPECT_EQ(heap in HWTEST_F_L0()
110 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
128 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
167 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
283 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
309 auto heap = new Heap(thread->GetEcmaVM()); HWTEST_F_L0() local
351 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
[all...]
H A Dgc_second_test.cpp42 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); variable
43 heap->GetConcurrentMarker()->EnableConcurrentMarking(EnableConcurrentMarkType::ENABLE);
44 heap->GetSweeper()->EnableConcurrentSweep(EnableConcurrentSweepType::ENABLE);
50 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local
52 heap->GetConcurrentMarker()->ConfigConcurrentMark(false); in HWTEST_F_L0()
53 size_t oldNativeSize = heap->GetNativeBindingSize(); in HWTEST_F_L0()
54 EcmaTestCommon::GcCommonCase(thread, heap, false); in HWTEST_F_L0()
56 auto newNativeSize = heap->GetNativeBindingSize(); in HWTEST_F_L0()
62 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local
64 heap in HWTEST_F_L0()
96 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
117 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
137 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
162 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
185 Heap *heap = const_cast<Heap *>(vm->GetHeap()); HWTEST_F_L0() local
211 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
232 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
242 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
281 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
310 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
[all...]
H A Dconcurrent_marking_test.cpp39 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); variable
40 heap->GetConcurrentMarker()->EnableConcurrentMarking(EnableConcurrentMarkType::ENABLE);
59 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local
60 heap->TriggerConcurrentMarking(); // concurrent mark in HWTEST_F_L0()
65 heap->CollectGarbage(TriggerGCType::OLD_GC); in HWTEST_F_L0()
77 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local
82 heap->CollectGarbage(TriggerGCType::OLD_GC); in HWTEST_F_L0()
87 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local
88 if (heap->GetConcurrentMarker()->IsEnabled()) { in HWTEST_F_L0()
89 heap in HWTEST_F_L0()
108 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
127 Heap *heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
[all...]
H A Djs_verification_test.cpp22 #include "ecmascript/mem/heap.h"
39 auto heap = const_cast<Heap *>(ecmaVm->GetHeap()); in HWTEST_F_L0() local
41 auto verifier = Verification(heap); in HWTEST_F_L0()
43 auto funcVerify = [](TaggedObject *object, [[maybe_unused]] Verification &v, const Heap *heap) { in HWTEST_F_L0()
44 EXPECT_TRUE(heap->ContainObject(object)); in HWTEST_F_L0()
45 EXPECT_TRUE(heap->IsAlive(object)); in HWTEST_F_L0()
50 funcVerify(*string, verifier, heap); in HWTEST_F_L0()
54 funcVerify(*oldArray, verifier, heap); in HWTEST_F_L0()
58 funcVerify(*nonMovableArray, verifier, heap); in HWTEST_F_L0()
64 auto heap in HWTEST_F_L0() local
88 auto heap = const_cast<Heap*>(ecmaVm->GetHeap()); HWTEST_F_L0() local
[all...]
H A Dgc_verify_test.cpp44 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); variable
45 heap->GetConcurrentMarker()->EnableConcurrentMarking(EnableConcurrentMarkType::ENABLE);
46 heap->GetSweeper()->EnableConcurrentSweep(EnableConcurrentSweepType::ENABLE);
52 Heap *heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local
53 heap->SetMarkType(MarkType::MARK_EDEN); in HWTEST_F_L0()
54 auto partialGc = heap->GetPartialGC(); in HWTEST_F_L0()
60 Heap *heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local
61 heap->SetMarkType(MarkType::MARK_YOUNG); in HWTEST_F_L0()
62 auto partialGc = heap->GetPartialGC(); in HWTEST_F_L0()
68 Heap *heap in HWTEST_F_L0() local
76 Heap *heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
[all...]
H A Dmem_controller_test.cpp23 #include "ecmascript/mem/heap.h"
40 auto heap = const_cast<Heap *>(ecmaVm->GetHeap()); in HWTEST_F_L0() local
42 auto memController = heap->GetMemController(); in HWTEST_F_L0()
44 heap->CollectGarbage(TriggerGCType::FULL_GC); in HWTEST_F_L0()
52 heap->CollectGarbage(TriggerGCType::FULL_GC); in HWTEST_F_L0()
61 heap->CollectGarbage(TriggerGCType::FULL_GC); in HWTEST_F_L0()
71 auto heap = const_cast<Heap *>(ecmaVm->GetHeap()); local
73 auto memController = heap->GetMemController();
75 heap->CollectGarbage(TriggerGCType::YOUNG_GC);
92 auto newSpace = heap
119 auto heap = const_cast<Heap *>(ecmaVm->GetHeap()); HWTEST_F_L0() local
129 auto heap = const_cast<Heap *>(ecmaVm->GetHeap()); HWTEST_F_L0() local
157 auto heap = const_cast<Heap *>(ecmaVm->GetHeap()); HWTEST_F_L0() local
[all...]
H A Dread_only_space_test.cpp87 auto *heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local
88 heap->GetReadOnlySpace()->SetReadOnly(); in HWTEST_F_L0()
96 heap->AllocateReadOnlyOrHugeObject( in HWTEST_F_L0()
106 auto *heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local
107 auto *object = heap->AllocateReadOnlyOrHugeObject( in HWTEST_F_L0()
115 auto *heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local
123 heap->CompactHeapBeforeFork(); in HWTEST_F_L0()
132 auto *heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local
133 auto *object = heap->AllocateReadOnlyOrHugeObject( in HWTEST_F_L0()
135 heap in HWTEST_F_L0()
145 auto *heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); HWTEST_F_L0() local
[all...]
H A Dthrow_oom_error_test.cpp56 auto heap = const_cast<Heap *>(ecmaVm->GetHeap()); in HWTEST_F_L0() local
57 auto oldSpace = heap->GetOldSpace(); in HWTEST_F_L0()
75 heap->CollectGarbage(TriggerGCType::YOUNG_GC); in HWTEST_F_L0()
76 heap->Prepare(); in HWTEST_F_L0()
77 heap->CollectGarbage(TriggerGCType::YOUNG_GC); in HWTEST_F_L0()
78 heap->Prepare(); in HWTEST_F_L0()
H A Dincremental_marking_test.cpp57 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local
58 heap->EnableNotifyIdle(); in HWTEST_F_L0()
59 heap->SetIdleTask(IdleTaskType::INCREMENTAL_MARK); // incremental mark in HWTEST_F_L0()
64 heap->CollectGarbage(TriggerGCType::OLD_GC); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_gc.cpp18 #include "ecmascript/mem/heap-inl.h"
25 auto *heap = info->GetThread()->GetEcmaVM()->GetHeap(); in GetFreeHeapSize() local
26 auto size = heap->GetHeapLimitSize() - heap->GetHeapObjectSize(); in GetFreeHeapSize()
32 auto *heap = info->GetThread()->GetEcmaVM()->GetHeap(); in GetReservedHeapSize() local
33 return JSTaggedValue(static_cast<int64_t>(heap->GetHeapLimitSize())); in GetReservedHeapSize()
38 auto *heap = info->GetThread()->GetEcmaVM()->GetHeap(); in GetUsedHeapSize() local
39 return JSTaggedValue(static_cast<int64_t>(heap->GetHeapObjectSize())); in GetUsedHeapSize()
58 auto *heap = const_cast<Heap *>(info->GetThread()->GetEcmaVM()->GetHeap()); in RegisterNativeAllocation() local
64 heap in RegisterNativeAllocation()
73 auto *heap = const_cast<Heap *>(info->GetThread()->GetEcmaVM()->GetHeap()); RegisterNativeFree() local
86 auto *heap = const_cast<Heap *>(info->GetThread()->GetEcmaVM()->GetHeap()); WaitForFinishGC() local
104 auto *heap = const_cast<Heap *>(info->GetThread()->GetEcmaVM()->GetHeap()); StartGC() local
161 WaitAndHandleConcurrentMarkingFinished(Heap *heap) WaitAndHandleConcurrentMarkingFinished() argument
[all...]
/arkcompiler/runtime_core/static_core/runtime/mem/
H A Dheap_verifier.h28 /// HeapReferenceVerifier checks reference checks if the referent is with the heap and it is live.
32 explicit HeapReferenceVerifier(HeapManager *heap, size_t *count) : heap_(heap), failCount_(count) {} in HeapReferenceVerifier() argument
45 * referent is with the heap and it is live.
52 HeapObjectVerifier(HeapManager *heap, size_t *count) : heap_(heap), failCount_(count) {} in HeapObjectVerifier() argument
68 explicit HeapVerifierBase(HeapManager *heap) : heap_(heap) {} in HeapVerifierBase() argument
81 explicit HeapVerifier(HeapManager *heap) : HeapVerifierBase(heap) {} in HeapVerifier() argument
106 FastHeapVerifier(HeapManager *heap) FastHeapVerifier() argument
149 HeapVerifierIntoGC(HeapManager *heap) HeapVerifierIntoGC() argument
[all...]
/arkcompiler/ets_runtime/ecmascript/mem/
H A Dverification.h22 #include "ecmascript/mem/heap.h"
32 VerifyScope(BaseHeap *heap) : heap_(heap) in VerifyScope() argument
50 static void VerifyInactiveSemiSpaceMarkedObject(const BaseHeap *heap, void *addr);
52 VerifyObjectVisitor(const BaseHeap *heap, size_t *failCount, in VerifyObjectVisitor() argument
54 : heap_(heap), failCount_(failCount), verifyKind_(verifyKind) in VerifyObjectVisitor()
92 explicit Verification(Heap *heap, VerifyKind verifyKind = VerifyKind::VERIFY_PRE_GC) in Verification() argument
93 : heap_(heap), verifyKind_(verifyKind) {} in Verification()
96 static void VerifyMark(Heap *heap);
97 static void VerifyEvacuate(Heap *heap);
115 SharedHeapVerification(SharedHeap *heap, VerifyKind verifyKind) SharedHeapVerification() argument
[all...]
H A Drset_worklist_handler-inl.h23 #include "ecmascript/mem/heap.h"
26 inline RSetWorkListHandler::RSetWorkListHandler(Heap *heap) : heap_(heap) in RSetWorkListHandler() argument
28 CollectRSetItemsInHeap(heap); in RSetWorkListHandler()
42 inline void RSetWorkListHandler::EnumerateRegions(const Heap *heap) in EnumerateRegions() argument
44 heap->EnumerateRegions([this](Region *region) { in EnumerateRegions()
52 inline void RSetWorkListHandler::CollectRSetItemsInHeap(const Heap *heap) in CollectRSetItemsInHeap() argument
56 items_.reserve(heap->GetRegionCount()); in CollectRSetItemsInHeap()
57 EnumerateRegions(heap); in CollectRSetItemsInHeap()
58 ASSERT(items_.size() <= heap in CollectRSetItemsInHeap()
[all...]
H A Dbarriers.cpp22 auto heap = thread->GetEcmaVM()->GetHeap(); in UpdateWithoutEden() local
23 if (heap->IsConcurrentFullMark()) { in UpdateWithoutEden()
39 heap->GetWorkManager()->Push(MAIN_THREAD_INDEX, heapValue); in UpdateWithoutEden()
49 auto heap = thread->GetEcmaVM()->GetHeap(); in Update() local
50 if (heap->IsConcurrentFullMark()) { in Update()
54 } else if (heap->IsYoungMark()) { in Update()
70 heap->GetWorkManager()->Push(MAIN_THREAD_INDEX, heapValue); in Update()
83 Heap *heap = const_cast<Heap*>(thread->GetEcmaVM()->GetHeap()); in UpdateShared() local
84 WorkNode *&localBuffer = heap->GetMarkingObjectLocalBuffer(); in UpdateShared()
H A Dspace.cpp23 Space::Space(BaseHeap* heap, HeapRegionAllocator *heapRegionAllocator, in Space() argument
26 : heap_(heap), in Space()
33 ASSERT(heap != nullptr); in Space()
91 HugeObjectSpace::HugeObjectSpace(Heap *heap, HeapRegionAllocator *heapRegionAllocator, in HugeObjectSpace() argument
93 : Space(heap, heapRegionAllocator, MemSpaceType::HUGE_OBJECT_SPACE, initialCapacity, maximumCapacity) in HugeObjectSpace()
97 HugeObjectSpace::HugeObjectSpace(Heap *heap, HeapRegionAllocator *heapRegionAllocator, in HugeObjectSpace() argument
99 : Space(heap, heapRegionAllocator, spaceType, initialCapacity, maximumCapacity) in HugeObjectSpace()
103 HugeMachineCodeSpace::HugeMachineCodeSpace(Heap *heap, HeapRegionAllocator *heapRegionAllocator, in HugeMachineCodeSpace() argument
105 : HugeObjectSpace(heap, heapRegionAllocator, initialCapacity, in HugeMachineCodeSpace()
H A Dparallel_marker.h32 explicit Marker(Heap *heap);
99 explicit NonMovableMarker(Heap *heap) : Marker(heap) {} in NonMovableMarker() argument
124 explicit MovableMarker(Heap *heap) : Marker(heap) {} in MovableMarker() argument
154 explicit SemiGCMarker(Heap *heap) : MovableMarker(heap) {} in SemiGCMarker() argument
175 explicit CompressGCMarker(Heap *heap) : MovableMarker(heap) {} in CompressGCMarker() argument
H A Dlinear_space.cpp23 LinearSpace::LinearSpace(Heap *heap, MemSpaceType type, size_t initialCapacity, size_t maximumCapacity) in LinearSpace() argument
24 : Space(heap, heap->GetHeapRegionAllocator(), type, initialCapacity, maximumCapacity), in LinearSpace()
25 localHeap_(heap), in LinearSpace()
26 thread_(heap->GetJSThread()), in LinearSpace()
42 // can not heap sampling in gc. in Allocate()
173 EdenSpace::EdenSpace(Heap *heap, size_t initialCapacity, size_t maximumCapacity) in EdenSpace() argument
174 : LinearSpace(heap, MemSpaceType::EDEN_SPACE, initialCapacity, maximumCapacity) in EdenSpace()
228 // can not heap sampling in gc. in Allocate()
343 SemiSpace::SemiSpace(Heap *heap, size_ argument
495 SnapshotSpace(Heap *heap, size_t initialCapacity, size_t maximumCapacity) SnapshotSpace() argument
498 ReadOnlySpace(Heap *heap, size_t initialCapacity, size_t maximumCapacity, MemSpaceType type) ReadOnlySpace() argument
[all...]
H A Drset_worklist_handler.h43 explicit RSetWorkListHandler(Heap *heap);
58 inline void EnumerateRegions(const Heap *heap);
66 inline void CollectRSetItemsInHeap(const Heap *heap);
76 * the RSet in heap(call from daemon thread in SuspendAll), and use CAS to set to false when try to merge back and
/arkcompiler/ets_runtime/ecmascript/mem/shared_heap/
H A Dshared_full_gc.h20 #include "ecmascript/mem/heap.h"
29 explicit SharedFullGC(SharedHeap *heap) : sHeap_(heap), sWorkManager_(heap->GetWorkManager()) {} in SharedFullGC() argument
H A Dshared_gc.h21 #include "ecmascript/mem/heap.h"
30 explicit SharedGC(SharedHeap *heap) : sHeap_(heap), sWorkManager_(heap->GetWorkManager()) {} in SharedGC() argument
H A Dshared_space.cpp19 #include "ecmascript/mem/heap-inl.h"
24 SharedSparseSpace::SharedSparseSpace(SharedHeap *heap, in SharedSparseSpace() argument
28 : Space(heap, heap->GetHeapRegionAllocator(), type, initialCapacity, maximumCapacity), in SharedSparseSpace()
30 sHeap_(heap), in SharedSparseSpace()
34 allocator_ = new FreeListAllocator<FreeObject>(heap); in SharedSparseSpace()
49 // only used in share heap initialize before first vmThread created.
68 // jit thread no heap in Allocate()
406 SharedAppSpawnSpace::SharedAppSpawnSpace(SharedHeap *heap, size_t initialCapacity) in SharedAppSpawnSpace() argument
407 : SharedSparseSpace(heap, MemSpaceTyp in SharedAppSpawnSpace()
421 SharedNonMovableSpace(SharedHeap *heap, size_t initialCapacity, size_t maximumCapacity) SharedNonMovableSpace() argument
426 SharedOldSpace(SharedHeap *heap, size_t initialCapacity, size_t maximumCapacity) SharedOldSpace() argument
459 SharedLocalSpace(SharedHeap *heap, size_t initialCapacity, size_t maximumCapacity) SharedLocalSpace() argument
502 SharedReadOnlySpace(SharedHeap *heap, size_t initialCapacity, size_t maximumCapacity) SharedReadOnlySpace() argument
581 SharedHugeObjectSpace(BaseHeap *heap, HeapRegionAllocator *heapRegionAllocator, size_t initialCapacity, size_t maximumCapacity) SharedHugeObjectSpace() argument
[all...]
H A Dshared_space.h33 SharedSparseSpace(SharedHeap *heap, MemSpaceType type, size_t initialCapacity, size_t maximumCapacity);
126 SharedAppSpawnSpace(SharedHeap *heap, size_t initialCapacity);
136 SharedNonMovableSpace(SharedHeap *heap, size_t initialCapacity, size_t maximumCapacity);
144 SharedOldSpace(SharedHeap *heap, size_t initialCapacity, size_t maximumCapacity);
171 SharedLocalSpace(SharedHeap *heap, size_t initialCapacity, size_t maximumCapacity);
184 SharedReadOnlySpace(SharedHeap *heap, size_t initialCapacity, size_t maximumCapacity);
218 SharedHugeObjectSpace(BaseHeap *heap, HeapRegionAllocator *regionAllocator, size_t initialCapacity,
/arkcompiler/ets_runtime/ecmascript/napi/test/
H A Ddfx_jsnapi_tests.cpp20 #include "ecmascript/mem/heap-inl.h"
282 auto heap = vm_->GetHeap(); in HWTEST_F_L0() local
284 size_t expectArrayBufferSize = heap->GetArrayBufferSize(); in HWTEST_F_L0()
288 size_t expectHeapTotalSize = heap->GetCommittedSize(); in HWTEST_F_L0()
292 size_t expectHeapUsedSize = heap->GetLiveObjectSize(); in HWTEST_F_L0()
296 size_t expectHeapObjectSize = heap->GetHeapObjectSize(); in HWTEST_F_L0()
300 EXPECT_GE(processHeapLimitSize, heap->GetEcmaParamConfiguration().GetMaxHeapSize()); in HWTEST_F_L0()
332 auto heap = const_cast<Heap *>(vm_->GetHeap()); in HWTEST_F_L0() local
333 heap->CollectGarbage(TriggerGCType::FULL_GC); in HWTEST_F_L0()
343 heap in HWTEST_F_L0()
372 auto heap = vm_->GetHeap(); HWTEST_F_L0() local
432 auto heap = const_cast<ecmascript::Heap *>(vm_->GetHeap()); HWTEST_F_L0() local
440 auto heap = const_cast<ecmascript::Heap *>(vm_->GetHeap()); HWTEST_F_L0() local
[all...]

Completed in 18 milliseconds

1234