Home
last modified time | relevance | path

Searched refs:gcType (Results 1 - 25 of 64) sorted by relevance

123

/arkcompiler/ets_runtime/ecmascript/daemon/
H A Ddaemon_task-inl.h25 template<TriggerGCType gcType, GCReason gcReason>
28 SharedHeap::GetInstance()->StartConcurrentMarking(gcType, gcReason); in TriggerConcurrentMarkTaskRunner()
31 template<TriggerGCType gcType, GCReason gcReason>
32 TriggerConcurrentMarkTask<gcType, gcReason>::TriggerConcurrentMarkTask(JSThread *thread) in TriggerConcurrentMarkTask()
34 &TriggerConcurrentMarkTaskRunner<gcType, gcReason>) {} in TriggerConcurrentMarkTask()
36 template<TriggerGCType gcType, GCReason gcReason>
39 SharedHeap::GetInstance()->DaemonCollectGarbage(gcType, gcReason); in TriggerCollectGarbageTaskRunner()
42 template<TriggerGCType gcType, GCReason gcReason>
43 TriggerCollectGarbageTask<gcType, gcReason>::TriggerCollectGarbageTask(JSThread *thread) in TriggerCollectGarbageTask()
45 &TriggerCollectGarbageTaskRunner<gcType, gcReaso in TriggerCollectGarbageTask()
[all...]
H A Ddaemon_task.h80 template<TriggerGCType gcType, GCReason gcReason>
86 template<TriggerGCType gcType, GCReason gcReason>
/arkcompiler/ets_runtime/test/fuzztest/jsnapitriggergc_fuzzer/
H A Djsnapitriggergc_fuzzer.cpp36 JSNApi::TRIGGER_GC_TYPE gcType = JSNApi::TRIGGER_GC_TYPE::FULL_GC; in JSNApiTriggerGCFuzztest() local
37 JSNApi::TriggerGC(vm, gcType); in JSNApiTriggerGCFuzztest()
39 JSNApi::TRIGGER_GC_TYPE gcType = JSNApi::TRIGGER_GC_TYPE::OLD_GC; in JSNApiTriggerGCFuzztest() local
40 JSNApi::TriggerGC(vm, gcType); in JSNApiTriggerGCFuzztest()
42 JSNApi::TRIGGER_GC_TYPE gcType = JSNApi::TRIGGER_GC_TYPE::SEMI_GC; in JSNApiTriggerGCFuzztest() local
43 JSNApi::TriggerGC(vm, gcType); in JSNApiTriggerGCFuzztest()
/arkcompiler/ets_runtime/ecmascript/mem/
H A Didle_gc_trigger.cpp145 void IdleGCTrigger::PostIdleGCTask(TRIGGER_IDLE_GC_TYPE gcType) in PostIdleGCTask() argument
147 if (triggerGCTaskCallback_ != nullptr && IsPossiblePostGCTask(gcType) && !heap_->NeedStopCollection()) { in PostIdleGCTask()
148 std::pair<void*, uint8_t> data(heap_->GetEcmaVM(), static_cast<uint8_t>(gcType)); in PostIdleGCTask()
150 SetPostGCTask(gcType); in PostIdleGCTask()
151 LOG_GC(INFO) << "IdleGCTrigger: post once " << GetGCTypeName(gcType) << " on idleTime"; in PostIdleGCTask()
153 LOG_GC(DEBUG) << "IdleGCTrigger: failed to post once " << GetGCTypeName(gcType); in PostIdleGCTask()
164 void IdleGCTrigger::TryTriggerIdleGC(TRIGGER_IDLE_GC_TYPE gcType) in TryTriggerIdleGC() argument
166 LOG_GC(DEBUG) << "IdleGCTrigger: recv once notify of " << GetGCTypeName(gcType); in TryTriggerIdleGC()
167 switch (gcType) { in TryTriggerIdleGC()
170 LOG_GC(INFO) << "IdleGCTrigger: trigger " << GetGCTypeName(gcType); in TryTriggerIdleGC()
[all...]
H A Didle_gc_trigger.h53 const char *GetGCTypeName(TRIGGER_IDLE_GC_TYPE gcType) const in GetGCTypeName()
55 switch (gcType) { in GetGCTypeName()
71 bool IsPossiblePostGCTask(TRIGGER_IDLE_GC_TYPE gcType) const in IsPossiblePostGCTask()
73 uint8_t bit = static_cast<uint8_t>(gcType); in IsPossiblePostGCTask()
77 void SetPostGCTask(TRIGGER_IDLE_GC_TYPE gcType) in SetPostGCTask() argument
79 uint8_t bit = static_cast<uint8_t>(gcType); in SetPostGCTask()
83 void ClearPostGCTask(TRIGGER_IDLE_GC_TYPE gcType) in ClearPostGCTask() argument
85 uint8_t bit = static_cast<uint8_t>(gcType); in ClearPostGCTask()
104 void TryTriggerIdleGC(TRIGGER_IDLE_GC_TYPE gcType);
164 void PostIdleGCTask(TRIGGER_IDLE_GC_TYPE gcType);
[all...]
H A Dconcurrent_marker.cpp81 TriggerGCType gcType; in HandleMarkingFinished() local
83 gcType = TriggerGCType::OLD_GC; in HandleMarkingFinished()
85 gcType = TriggerGCType::EDEN_GC; in HandleMarkingFinished()
87 gcType = TriggerGCType::YOUNG_GC; in HandleMarkingFinished()
89 heap_->CollectGarbage(gcType, gcReason); in HandleMarkingFinished()
H A Dparallel_evacuator.h206 template<TriggerGCType gcType>
211 template<TriggerGCType gcType>
213 template<TriggerGCType gcType>
215 template<TriggerGCType gcType>
225 template<TriggerGCType gcType>
228 template<TriggerGCType gcType>
H A Dheap.cpp91 void SharedHeap::ForceCollectGarbageWithoutDaemonThread(TriggerGCType gcType, GCReason gcReason, JSThread *thread) in ForceCollectGarbageWithoutDaemonThread() argument
98 GetEcmaGCStats()->RecordStatisticBeforeGC(gcType, gcReason); in ForceCollectGarbageWithoutDaemonThread()
105 switch (gcType) { // LCOV_EXCL_BR_LINE in ForceCollectGarbageWithoutDaemonThread()
124 CollectGarbageFinish(false, gcType); in ForceCollectGarbageWithoutDaemonThread()
175 void SharedHeap::StartConcurrentMarking(TriggerGCType gcType, GCReason gcReason) in StartConcurrentMarking() argument
178 sConcurrentMarker_->Mark(gcType, gcReason); in StartConcurrentMarking()
369 void SharedHeap::DaemonCollectGarbage([[maybe_unused]]TriggerGCType gcType, [[maybe_unused]]GCReason gcReason) in DaemonCollectGarbage() argument
372 ASSERT(gcType == TriggerGCType::SHARED_GC || gcType == TriggerGCType::SHARED_FULL_GC); in DaemonCollectGarbage()
379 gcType_ = gcType; in DaemonCollectGarbage()
497 Reclaim(TriggerGCType gcType) Reclaim() argument
511 ReclaimRegions(TriggerGCType gcType) ReclaimRegions() argument
971 Resume(TriggerGCType gcType) Resume() argument
1088 CollectGarbage(TriggerGCType gcType, GCReason reason) CollectGarbage() argument
[all...]
H A Dheap.h282 void UpdateHeapStatsAfterGC(TriggerGCType gcType) in UpdateHeapStatsAfterGC() argument
284 if (gcType == TriggerGCType::EDEN_GC || gcType == TriggerGCType::YOUNG_GC) { in UpdateHeapStatsAfterGC()
289 if (gcType == TriggerGCType::FULL_GC || gcType == TriggerGCType::SHARED_FULL_GC) { in UpdateHeapStatsAfterGC()
548 void StartConcurrentMarking(TriggerGCType gcType, GCReason gcReason); // In daemon thread
631 template<TriggerGCType gcType, GCReason gcReason>
634 template<TriggerGCType gcType, GCReason gcReason>
646 void DaemonCollectGarbage(TriggerGCType gcType, GCReason reason);
741 void Reclaim(TriggerGCType gcType);
[all...]
H A Dparallel_evacuator.cpp401 template<TriggerGCType gcType>
409 if constexpr (gcType == TriggerGCType::EDEN_GC) { in UpdateWeakReferenceOpt()
418 } else if constexpr (gcType == TriggerGCType::YOUNG_GC) { in UpdateWeakReferenceOpt()
422 } else if constexpr (gcType == TriggerGCType::OLD_GC) { in UpdateWeakReferenceOpt()
431 LOG_GC(FATAL) << "WeakRootVisitor: not support gcType yet"; in UpdateWeakReferenceOpt()
500 template<TriggerGCType gcType>
521 UpdateNewObjectField<gcType>(obj, klass); in UpdateNewRegionReference()
534 template<TriggerGCType gcType>
543 UpdateNewObjectField<gcType>(header, klass); in UpdateAndSweepNewRegionReference()
561 template<TriggerGCType gcType>
[all...]
H A Dparallel_evacuator-inl.h197 template<TriggerGCType gcType>
202 if (UpdateWeakObjectSlotOpt<gcType>(value, slot)) { in UpdateObjectSlotOpt()
213 template<TriggerGCType gcType>
219 if constexpr (gcType == TriggerGCType::YOUNG_GC) { in UpdateWeakObjectSlotOpt()
223 } else if constexpr (gcType == TriggerGCType::OLD_GC) { in UpdateWeakObjectSlotOpt()
232 LOG_GC(FATAL) << "UpdateWeakObjectSlotOpt: not support gcType yet"; in UpdateWeakObjectSlotOpt()
H A Dgc_stats.h151 virtual void RecordStatisticBeforeGC(TriggerGCType gcType, GCReason reason);
223 GCType GetGCType(TriggerGCType gcType);
332 void RecordStatisticBeforeGC(TriggerGCType gcType, GCReason reason) override;
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
H A Dgc_types.h40 constexpr bool IsGenerationalGCType(const GCType gcType) in IsGenerationalGCType() argument
43 ASSERT(gcType != GCType::INVALID_GC); in IsGenerationalGCType()
44 switch (gcType) { in IsGenerationalGCType()
102 constexpr std::string_view GCStringFromType(GCType gcType) in GCStringFromType() argument
104 if (gcType == GCType::EPSILON_GC) { in GCStringFromType()
107 if (gcType == GCType::EPSILON_G1_GC) { in GCStringFromType()
110 if (gcType == GCType::STW_GC) { in GCStringFromType()
113 if (gcType == GCType::GEN_GC) { in GCStringFromType()
116 if (gcType == GCType::G1_GC) { in GCStringFromType()
H A Dgc_stats.cpp276 PandaString GCInstanceStats::GetDump(GCType gcType) in GetDump() argument
287 statistic << GetYoungSpaceDump(gcType); in GetDump()
289 statistic << GetAllSpacesDump(gcType); in GetDump()
312 PandaString GCInstanceStats::GetYoungSpaceDump(GCType gcType) in GetYoungSpaceDump() argument
315 statistic << "young " << GC_NAMES[ToIndex(gcType)] in GetYoungSpaceDump()
323 statistic << "young " << GC_NAMES[ToIndex(gcType)] << " total time: " << youngTotalTime in GetYoungSpaceDump()
325 statistic << "young " << GC_NAMES[ToIndex(gcType)] << " freed: " << youngTotalFreedObj << " with total size " in GetYoungSpaceDump()
328 statistic << "young " << GC_NAMES[ToIndex(gcType)] << " throughput: " << std::scientific in GetYoungSpaceDump()
336 PandaString GCInstanceStats::GetAllSpacesDump(GCType gcType) in GetAllSpacesDump() argument
340 statistic << GC_NAMES[ToIndex(gcType)] in GetAllSpacesDump()
[all...]
/arkcompiler/runtime_core/static_core/runtime/mem/
H A Dmemory_manager.cpp28 GCType gcType, MemStatsType *memStats) in CreateHeapManager()
36 if (!heapManager->Initialize(gcType, options.multithreadingMode, options.isUseTlabForAllocations, memStats, in CreateHeapManager()
48 MemoryManager *MemoryManager::Create(const LanguageContext &ctx, InternalAllocatorPtr internalAllocator, GCType gcType, in Create() argument
54 HeapManager *heapManager = CreateHeapManager(internalAllocator, heapOptions, gcType, memStats.get()); in Create()
60 GCStats *gcStats = allocator->New<GCStats>(memStats.get(), gcType, allocator); in Create()
61 GC *gc = ctx.CreateGC(gcType, heapManager->GetObjectAllocator().AsObjectAllocator(), gcSettings); in Create()
66 (gcType != GCType::G1_GC || gcTrigger->GetType() != GCTriggerType::PAUSE_TIME_GOAL_TRIGGER)) { in Create()
27 CreateHeapManager(InternalAllocatorPtr internalAllocator, const MemoryManager::HeapOptions &options, GCType gcType, MemStatsType *memStats) CreateHeapManager() argument
/arkcompiler/runtime_core/static_core/compiler/aot/
H A Daot_file.cpp51 Expected<std::unique_ptr<AotFile>, std::string> AotFile::Open(const std::string &fileName, uint32_t gcType, in Open() argument
83 if (!forDump && aotHeader->gcType != gcType) { in Open()
85 std::string(mem::GCStringFromType(static_cast<mem::GCType>(aotHeader->gcType))) + " vs " + in Open()
86 std::string(mem::GCStringFromType(static_cast<mem::GCType>(gcType)))); in Open()
H A Daot_manager.cpp23 Expected<bool, std::string> AotManager::AddFile(const std::string &fileName, RuntimeInterface *runtime, uint32_t gcType, in AddFile() argument
30 auto aotFile = AotFile::Open(fileName, gcType); in AddFile()
/arkcompiler/runtime_core/static_core/runtime/
H A Dfile_manager.cpp62 auto gcType = Runtime::GetGCType(Runtime::GetOptions(), plugins::RuntimeTypeToLang(runtime->GetRuntimeType())); in LoadAnFile() local
63 ASSERT(gcType != ark::mem::GCType::INVALID_GC); in LoadAnFile()
66 static_cast<uint32_t>(gcType), force); in LoadAnFile()
/arkcompiler/runtime_core/static_core/runtime/tests/
H A Dgc_log_test.cpp53 void SetupRuntime(const std::string &gcType, bool smallHeapAndYoungSpaces = false, in SetupRuntime() argument
64 options.SetGcType(gcType); in SetupRuntime()
114 auto gcType = GetParam(); in FullLogTest() local
115 bool isStw = strcmp(gcType, "stw") == 0; in FullLogTest()
117 SetupRuntime(gcType); in FullLogTest()
/arkcompiler/runtime_core/static_core/runtime/interpreter/
H A Dinterpreter_impl.cpp113 auto gcType = thread->GetVM()->GetGC()->GetType(); in ExecuteImpl() local
114 if (gcType != mem::GCType::G1_GC) { in ExecuteImpl()
115 LOG(FATAL, RUNTIME) << "For dynamic languages, --gc-type=" << mem::GCStringFromType(gcType) in ExecuteImpl()
/arkcompiler/ets_runtime/ecmascript/mem/shared_heap/
H A Dshared_concurrent_marker.cpp41 void SharedConcurrentMarker::Mark(TriggerGCType gcType, GCReason gcReason) in Mark() argument
44 gcType_ = gcType; in Mark()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
H A Dets_language_context.cpp58 mem::GC *EtsLanguageContext::CreateGC(mem::GCType gcType, mem::ObjectAllocatorBase *objectAllocator, in CreateGC() argument
61 return mem::CreateGC<EtsLanguageConfig>(gcType, objectAllocator, settings); in CreateGC()
/arkcompiler/runtime_core/static_core/compiler/tests/
H A Daot_test.cpp183 void BuildAot(const char *tmpfilePn, mem::GCType gcType) in BuildAot() argument
188 aotBuilder.SetGcType(static_cast<uint32_t>(gcType)); in BuildAot()
315 auto gcType = Runtime::GetGCType(runtime->GetOptions(), plugins::RuntimeTypeToLang(runtime->GetRuntimeType())); in TEST_F() local
316 BuildAot(tmpfilePn, gcType); in TEST_F()
570 auto gcType = Runtime::GetGCType(runtime->GetOptions(), plugins::RuntimeTypeToLang(runtime->GetRuntimeType())); in TEST_F() local
572 if (gcType == mem::GCType::STW_GC) { in TEST_F()
574 } else if (gcType == mem::GCType::GEN_GC) { in TEST_F()
577 ASSERT_TRUE(gcType == mem::GCType::EPSILON_GC || gcType == mem::GCType::EPSILON_G1_GC) in TEST_F()
/arkcompiler/ets_runtime/ecmascript/napi/include/
H A Djsnapi.h307 std::string gcType; in GetGcType() local
310 gcType = "gen-gc"; in GetGcType()
313 gcType = "stw"; in GetGcType()
316 gcType = "epsilon"; in GetGcType()
321 return gcType; in GetGcType()
/arkcompiler/runtime_core/static_core/compiler/aot/aot_builder/
H A Daot_builder.h47 void SetGcType(uint32_t gcType) in SetGcType() argument
49 gcType_ = gcType; in SetGcType()

Completed in 22 milliseconds

123