/arkcompiler/ets_runtime/ecmascript/tests/ |
D | gc_test.cpp | 49 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in SetUp() local 50 heap->GetConcurrentMarker()->EnableConcurrentMarking(EnableConcurrentMarkType::ENABLE); in SetUp() 51 heap->GetSweeper()->EnableConcurrentSweep(EnableConcurrentSweepType::ENABLE); in SetUp() 67 auto heap = thread->GetEcmaVM()->GetHeap(); in HWTEST_F_L0() local 68 auto fullGc = heap->GetFullGC(); in HWTEST_F_L0() 70 auto oldSizebase = heap->GetOldSpace()->GetHeapObjectSize(); in HWTEST_F_L0() 77 oldSizeBefore = heap->GetOldSpace()->GetHeapObjectSize(); in HWTEST_F_L0() 81 auto oldSizeAfter = heap->GetOldSpace()->GetHeapObjectSize(); in HWTEST_F_L0() 87 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local 88 EXPECT_EQ(heap->GetMemGrowingType(), MemGrowingType::HIGH_THROUGHPUT); in HWTEST_F_L0() [all …]
|
D | js_verification_test.cpp | 63 auto heap = const_cast<Heap *>(ecmaVm->GetHeap()); in HWTEST_F_L0() local 65 auto verifier = Verification(heap); in HWTEST_F_L0() 67 auto funcVerify = [](TaggedObject *object, [[maybe_unused]] Verification &v, const Heap *heap) { in HWTEST_F_L0() argument 68 EXPECT_TRUE(heap->ContainObject(object)); in HWTEST_F_L0() 69 EXPECT_TRUE(heap->IsAlive(object)); in HWTEST_F_L0() 74 funcVerify(*string, verifier, heap); in HWTEST_F_L0() 78 funcVerify(*oldArray, verifier, heap); in HWTEST_F_L0() 82 funcVerify(*nonMovableArray, verifier, heap); in HWTEST_F_L0() 88 auto heap = const_cast<Heap *>(ecmaVm->GetHeap()); in HWTEST_F_L0() local 90 EXPECT_EQ(heap->VerifyHeapObjects(), 0U); // failcount is 0 in HWTEST_F_L0() [all …]
|
D | read_only_space_test.cpp | 95 auto *heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local 96 heap->GetReadOnlySpace()->SetReadOnly(); in HWTEST_F_L0() 103 heap->AllocateReadOnlyOrHugeObject( in HWTEST_F_L0() 113 auto *heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local 114 auto *object = heap->AllocateReadOnlyOrHugeObject( in HWTEST_F_L0() 122 auto *heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local 130 heap->CompactHeapBeforeFork(); in HWTEST_F_L0() 139 auto *heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local 140 auto *object = heap->AllocateReadOnlyOrHugeObject( in HWTEST_F_L0() 142 heap->CollectGarbage(TriggerGCType::YOUNG_GC); in HWTEST_F_L0() [all …]
|
D | mem_controller_test.cpp | 64 auto heap = const_cast<Heap *>(ecmaVm->GetHeap()); in HWTEST_F_L0() local 66 auto memController = heap->GetMemController(); in HWTEST_F_L0() 68 heap->CollectGarbage(TriggerGCType::FULL_GC); in HWTEST_F_L0() 76 heap->CollectGarbage(TriggerGCType::FULL_GC); in HWTEST_F_L0() 85 heap->CollectGarbage(TriggerGCType::FULL_GC); in HWTEST_F_L0() 95 auto heap = const_cast<Heap *>(ecmaVm->GetHeap()); in HWTEST_F_L0() local 97 auto memController = heap->GetMemController(); in HWTEST_F_L0() 99 heap->CollectGarbage(TriggerGCType::YOUNG_GC); in HWTEST_F_L0() 116 auto newSpace = heap->GetNewSpace(); in HWTEST_F_L0() 119 heap->CollectGarbage(TriggerGCType::YOUNG_GC); in HWTEST_F_L0() [all …]
|
D | concurrent_marking_test.cpp | 48 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in SetUp() local 49 heap->GetConcurrentMarker()->EnableConcurrentMarking(EnableConcurrentMarkType::ENABLE); in SetUp() 77 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local 78 heap->TriggerConcurrentMarking(); // concurrent mark in HWTEST_F_L0() 83 heap->CollectGarbage(TriggerGCType::OLD_GC); in HWTEST_F_L0() 95 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local 100 heap->CollectGarbage(TriggerGCType::OLD_GC); in HWTEST_F_L0()
|
D | throw_oom_error_test.cpp | 73 auto heap = const_cast<Heap *>(ecmaVm->GetHeap()); in HWTEST_F_L0() local 74 auto oldSpace = heap->GetOldSpace(); in HWTEST_F_L0() 92 heap->CollectGarbage(TriggerGCType::YOUNG_GC); in HWTEST_F_L0() 93 heap->Prepare(); in HWTEST_F_L0() 94 heap->CollectGarbage(TriggerGCType::YOUNG_GC); in HWTEST_F_L0() 95 heap->Prepare(); in HWTEST_F_L0()
|
D | incremental_marking_test.cpp | 75 auto heap = const_cast<Heap *>(thread->GetEcmaVM()->GetHeap()); in HWTEST_F_L0() local 76 heap->EnableNotifyIdle(); in HWTEST_F_L0() 77 heap->SetIdleTask(IdleTaskType::INCREMENTAL_MARK); // incremental mark in HWTEST_F_L0() 82 heap->CollectGarbage(TriggerGCType::OLD_GC); in HWTEST_F_L0()
|
D | huge_object_test.cpp | 96 auto heap = ecmaVm->GetHeap(); in HWTEST_F_L0() local 118 VerifyObjectVisitor objVerifier(heap, &failCount); in HWTEST_F_L0() 119 … heap->GetHugeObjectSpace()->IterateOverObjects(objVerifier); // newspace reference the old space in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | verification.h | 32 VerifyObjectVisitor(const Heap *heap, size_t *failCount) in VerifyObjectVisitor() argument 33 : heap_(heap), failCount_(failCount), objXRay_(heap->GetEcmaVM()) in VerifyObjectVisitor() 61 explicit Verification(const Heap *heap) : heap_(heap), objXRay_(heap->GetEcmaVM()) {} in Verification() argument
|
D | barriers.cpp | 24 auto heap = thread->GetEcmaVM()->GetHeap(); in Update() local 25 if (heap->IsFullMark()) { in Update() 39 heap->GetWorkManager()->Push(0, heapValue, valueRegion); in Update()
|
D | parallel_marker.h | 34 explicit Marker(Heap *heap); 93 explicit NonMovableMarker(Heap *heap) : Marker(heap) {} in NonMovableMarker() argument 115 explicit MovableMarker(Heap *heap) : Marker(heap) {} in MovableMarker() argument 140 explicit SemiGCMarker(Heap *heap) : MovableMarker(heap) {} in SemiGCMarker() argument 161 explicit CompressGCMarker(Heap *heap) : MovableMarker(heap) {} in CompressGCMarker() argument
|
D | linear_space.cpp | 25 LinearSpace::LinearSpace(Heap *heap, MemSpaceType type, size_t initialCapacity, size_t maximumCapac… in LinearSpace() argument 26 : Space(heap->GetHeapRegionAllocator(), type, initialCapacity, maximumCapacity), in LinearSpace() 27 heap_(heap), in LinearSpace() 161 SemiSpace::SemiSpace(Heap *heap, size_t initialCapacity, size_t maximumCapacity) in SemiSpace() argument 162 : LinearSpace(heap, MemSpaceType::SEMI_SPACE, initialCapacity, maximumCapacity), in SemiSpace() 297 SnapshotSpace::SnapshotSpace(Heap *heap, size_t initialCapacity, size_t maximumCapacity) in SnapshotSpace() argument 298 : LinearSpace(heap, MemSpaceType::SNAPSHOT_SPACE, initialCapacity, maximumCapacity) {} in SnapshotSpace() 300 ReadOnlySpace::ReadOnlySpace(Heap *heap, size_t initialCapacity, size_t maximumCapacity) in ReadOnlySpace() argument 301 : LinearSpace(heap, MemSpaceType::READ_ONLY_SPACE, initialCapacity, maximumCapacity) {} in ReadOnlySpace()
|
D | sparse_space.h | 54 SparseSpace(Heap *heap, MemSpaceType type, size_t initialCapacity, size_t maximumCapacity); 129 OldSpace(Heap *heap, size_t initialCapacity, size_t maximumCapacity); 188 NonMovableSpace(Heap *heap, size_t initialCapacity, size_t maximumCapacity); 196 AppSpawnSpace(Heap *heap, size_t initialCapacity); 207 LocalSpace(Heap *heap, size_t initialCapacity, size_t maximumCapacity); 220 MachineCodeSpace(Heap *heap, size_t initialCapacity, size_t maximumCapacity);
|
D | sparse_space.cpp | 26 SparseSpace::SparseSpace(Heap *heap, MemSpaceType type, size_t initialCapacity, size_t maximumCapac… in SparseSpace() argument 27 : Space(heap->GetHeapRegionAllocator(), type, initialCapacity, maximumCapacity), in SparseSpace() 29 heap_(heap), in SparseSpace() 32 allocator_ = new FreeListAllocator(heap); in SparseSpace() 348 OldSpace::OldSpace(Heap *heap, size_t initialCapacity, size_t maximumCapacity) in OldSpace() argument 349 : SparseSpace(heap, OLD_SPACE, initialCapacity, maximumCapacity) {} in OldSpace() 526 LocalSpace::LocalSpace(Heap *heap, size_t initialCapacity, size_t maximumCapacity) in LocalSpace() argument 527 : SparseSpace(heap, LOCAL_SPACE, initialCapacity, maximumCapacity) {} in LocalSpace() 553 NonMovableSpace::NonMovableSpace(Heap *heap, size_t initialCapacity, size_t maximumCapacity) in NonMovableSpace() argument 554 : SparseSpace(heap, MemSpaceType::NON_MOVABLE, initialCapacity, maximumCapacity) in NonMovableSpace() [all …]
|
D | linear_space.h | 24 LinearSpace(Heap *heap, MemSpaceType type, size_t initialCapacity, size_t maximumCapacity); 77 SemiSpace(Heap *heap, size_t initialCapacity, size_t maximumCapacity); 114 SnapshotSpace(Heap *heap, size_t initialCapacity, size_t maximumCapacity); 135 ReadOnlySpace(Heap *heap, size_t initialCapacity, size_t maximumCapacity);
|
D | tlab_allocator-inl.h | 28 TlabAllocator::TlabAllocator(Heap *heap) in TlabAllocator() argument 29 : heap_(heap), enableExpandYoung_(true) in TlabAllocator() 31 size_t maxOldSpaceCapacity = heap->GetOldSpace()->GetMaximumCapacity(); in TlabAllocator() 32 localSpace_ = new LocalSpace(heap, maxOldSpaceCapacity, maxOldSpaceCapacity); in TlabAllocator()
|
D | incremental_marker.cpp | 37 IncrementalMarker::IncrementalMarker(Heap *heap) in IncrementalMarker() argument 38 : heap_(heap), in IncrementalMarker() 39 vm_(heap->GetEcmaVM()), in IncrementalMarker() 40 workManager_(heap->GetWorkManager()) {} in IncrementalMarker()
|
D | mark_stack.h | 100 explicit ContinuousStack(Heap *heap) : heap_(heap) {} in ContinuousStack() argument 105 inline void BeginMarking(Heap *heap, ContinuousStack<T> *other) in BeginMarking() argument 107 heap_ = heap; in BeginMarking()
|
D | concurrent_marker.h | 44 ConcurrentMarker(Heap *heap, EnableConcurrentMarkType type); 128 MarkerTask(int32_t id, Heap *heap) : Task(id), heap_(heap) {} in MarkerTask() argument
|
D | concurrent_marker.cpp | 36 ConcurrentMarker::ConcurrentMarker(Heap *heap, EnableConcurrentMarkType type) in ConcurrentMarker() argument 37 : heap_(heap), in ConcurrentMarker() 38 vm_(heap->GetEcmaVM()), in ConcurrentMarker() 40 workManager_(heap->GetWorkManager()), in ConcurrentMarker()
|
D | allocation_inspector.h | 27 explicit AllocationInspector(Heap *heap, uint64_t rate, HeapSampling *profiler) in AllocationInspector() argument 30 heap_(heap) {} in AllocationInspector()
|
D | gc_stats.h | 71 explicit GCStats(const Heap *heap) : heap_(heap) {} in GCStats() argument 72 GCStats(const Heap *heap, size_t longPuaseTime) : heap_(heap), in GCStats() argument
|
D | allocator-inl.h | 65 FreeListAllocator::FreeListAllocator(Heap *heap) : heap_(heap) in FreeListAllocator() argument 75 void FreeListAllocator::Reset(Heap *heap) in Reset() argument 77 heap_ = heap; in Reset()
|
D | partial_gc.cpp | 35 PartialGC::PartialGC(Heap *heap) : heap_(heap), workManager_(heap->GetWorkManager()) {} in PartialGC() argument
|
/arkcompiler/ets_runtime/ecmascript/napi/test/ |
D | dfx_jsnapi_tests.cpp | 276 auto heap = vm_->GetHeap(); in HWTEST_F_L0() local 278 size_t expectArrayBufferSize = heap->GetArrayBufferSize(); in HWTEST_F_L0() 282 size_t expectHeapTotalSize = heap->GetCommittedSize(); in HWTEST_F_L0() 286 size_t expectHeapUsedSize = heap->GetHeapObjectSize(); in HWTEST_F_L0() 292 auto heap = vm_->GetHeap(); in HWTEST_F_L0() local 293 auto concurrentMarker = heap->GetConcurrentMarker(); in HWTEST_F_L0() 294 auto sweeper = heap->GetSweeper(); in HWTEST_F_L0() 302 const_cast<ecmascript::Heap *>(heap)->CollectGarbage(TriggerGCType::OLD_GC, GCReason::OTHER); in HWTEST_F_L0() 310 auto heap = vm_->GetHeap(); in HWTEST_F_L0() local 313 EXPECT_EQ(heap->GetMemGrowingType(), MemGrowingType::PRESSURE); in HWTEST_F_L0() [all …]
|