Home
last modified time | relevance | path

Searched refs:gcType (Results 1 – 25 of 54) sorted by relevance

123

/arkcompiler/runtime_core/static_core/runtime/mem/gc/
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()
Dgc_stats.cpp277 PandaString GCInstanceStats::GetDump(GCType gcType) in GetDump() argument
288 statistic << GetYoungSpaceDump(gcType); in GetDump()
290 statistic << GetAllSpacesDump(gcType); in GetDump()
313 PandaString GCInstanceStats::GetYoungSpaceDump(GCType gcType) in GetYoungSpaceDump() argument
316 statistic << "young " << GC_NAMES[ToIndex(gcType)] in GetYoungSpaceDump()
324 statistic << "young " << GC_NAMES[ToIndex(gcType)] << " total time: " << youngTotalTime in GetYoungSpaceDump()
326 …statistic << "young " << GC_NAMES[ToIndex(gcType)] << " freed: " << youngTotalFreedObj << " with t… in GetYoungSpaceDump()
329 statistic << "young " << GC_NAMES[ToIndex(gcType)] << " throughput: " << std::scientific in GetYoungSpaceDump()
337 PandaString GCInstanceStats::GetAllSpacesDump(GCType gcType) in GetAllSpacesDump() argument
341 statistic << GC_NAMES[ToIndex(gcType)] in GetAllSpacesDump()
[all …]
Dgc_stats.h158 PandaString GetDump(GCType gcType);
166 PandaString GetYoungSpaceDump(GCType gcType);
167 PandaString GetAllSpacesDump(GCType gcType);
/arkcompiler/ets_runtime/test/fuzztest/jsnapitriggergc_fuzzer/
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/runtime_core/static_core/runtime/mem/
Dmemory_manager.cpp28 GCType gcType, MemStatsType *memStats) in CreateHeapManager() argument
36 …if (!heapManager->Initialize(gcType, options.isSingleThread, options.isUseTlabForAllocations, memS… in CreateHeapManager()
48 …yManager::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()
Dheap_manager.cpp39 bool HeapManager::Initialize(GCType gcType, bool singleThreaded, bool useTlab, MemStatsType *memSta… in Initialize() argument
56 switch (gcType) { in Initialize()
63 LOG(FATAL, GC) << "Invalid init for gc_type = " << static_cast<int>(gcType); in Initialize()
74 ASSERT(IsGenerationalGCType(gcType) || (!useTlabForAllocations_)); in Initialize()
Dmemory_manager.h75 …yManager *Create(const LanguageContext &ctx, InternalAllocatorPtr internalAllocator, GCType gcType,
/arkcompiler/runtime_core/static_core/compiler/aot/
Daot_file.cpp49 …<std::unique_ptr<AotFile>, std::string> AotFile::Open(const std::string &fileName, uint32_t gcType, in Open() argument
81 if (!forDump && aotHeader->gcType != gcType) { in Open()
83 … std::string(mem::GCStringFromType(static_cast<mem::GCType>(aotHeader->gcType))) + " vs " + in Open()
84 std::string(mem::GCStringFromType(static_cast<mem::GCType>(gcType)))); in Open()
Daot_headers.h34 uint32_t gcType; member
Daot_manager.cpp23 …tring> 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/
Dfile_manager.cpp62 …auto gcType = Runtime::GetGCType(Runtime::GetOptions(), plugins::RuntimeTypeToLang(runtime->GetRun… in LoadAnFile() local
63 ASSERT(gcType != panda::mem::GCType::INVALID_GC); in LoadAnFile()
66 … static_cast<uint32_t>(gcType), force); in LoadAnFile()
/arkcompiler/runtime_core/static_core/runtime/tests/
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()
Dmem_stats_gc_test.cpp31 void SetupRuntime(const std::string &gcType) in SetupRuntime() argument
37 options.SetGcType(gcType); in SetupRuntime()
Dexplicit_gc_test.cpp55 void SetupRuntime(const std::string &gcType, bool isExplicitFull) const in SetupRuntime() argument
65 options.SetGcType(gcType); in SetupRuntime()
/arkcompiler/runtime_core/static_core/runtime/interpreter/
Dinterpreter_impl.cpp73 auto gcType = thread->GetVM()->GetGC()->GetType(); in ExecuteImpl() local
74 if (gcType != mem::GCType::G1_GC) { in ExecuteImpl()
75 … LOG(FATAL, RUNTIME) << "For dynamic languages, --gc-type=" << mem::GCStringFromType(gcType) in ExecuteImpl()
/arkcompiler/ets_runtime/ecmascript/mem/
Dheap.cpp262 void Heap::Resume(TriggerGCType gcType) in Resume() argument
286 std::make_unique<AsyncClearTask>(GetJSThread()->GetThreadId(), this, gcType)); in Resume()
288 ReclaimRegions(gcType); in Resume()
363 void Heap::CollectGarbage(TriggerGCType gcType, GCReason reason) in CollectGarbage() argument
382 gcType = TriggerGCType::FULL_GC; in CollectGarbage()
384 if (fullGCRequested_ && thread_->IsReadyToMark() && gcType != TriggerGCType::FULL_GC) { in CollectGarbage()
385 gcType = TriggerGCType::FULL_GC; in CollectGarbage()
387 if (oldGCRequested_ && gcType != TriggerGCType::FULL_GC) { in CollectGarbage()
388 gcType = TriggerGCType::OLD_GC; in CollectGarbage()
395 StatisticHeapObject(gcType); in CollectGarbage()
[all …]
Dheap.h99 void Resume(TriggerGCType gcType);
344 void CollectGarbage(TriggerGCType gcType, GCReason reason = GCReason::OTHER);
540 void StatisticHeapObject(TriggerGCType gcType) const;
542 void PrintHeapInfo(TriggerGCType gcType) const;
673 inline void ReclaimRegions(TriggerGCType gcType);
Dgc_stats.h134 void RecordStatisticBeforeGC(TriggerGCType gcType, GCReason reason);
168 GCType GetGCType(TriggerGCType gcType);
Dwork_manager.cpp146 void WorkManager::Initialize(TriggerGCType gcType, ParallelGCTaskPhase taskPhase) in Initialize() argument
159 if (gcType != TriggerGCType::OLD_GC) { in Initialize()
Dmem_controller.cpp113 void MemController::StopCalculationAfterGC(TriggerGCType gcType) in StopCalculationAfterGC() argument
139 switch (gcType) { in StopCalculationAfterGC()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
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/ets_runtime/ecmascript/napi/include/
Djsnapi.h262 std::string gcType; in GetGcType() local
265 gcType = "gen-gc"; in GetGcType()
268 gcType = "stw"; in GetGcType()
271 gcType = "epsilon"; in GetGcType()
276 return gcType; in GetGcType()
/arkcompiler/runtime_core/static_core/compiler/aot/aot_builder/
Daot_builder.h47 void SetGcType(uint32_t gcType) in SetGcType() argument
49 gcType_ = gcType; in SetGcType()
/arkcompiler/runtime_core/static_core/compiler/tests/
Daot_test.cpp497 …auto gcType = Runtime::GetGCType(runtime->GetOptions(), plugins::RuntimeTypeToLang(runtime->GetRun… in TEST_F() local
499 if (gcType == mem::GCType::STW_GC) { in TEST_F()
501 } else if (gcType == mem::GCType::GEN_GC) { in TEST_F()
504 ASSERT_TRUE(gcType == mem::GCType::EPSILON_GC || gcType == mem::GCType::EPSILON_G1_GC) in TEST_F()
550 …auto gcType = Runtime::GetGCType(runtime->GetOptions(), plugins::RuntimeTypeToLang(runtime->GetRun… in TEST_F() local
551 aotBuilder.SetGcType(static_cast<uint32_t>(gcType)); in TEST_F()
/arkcompiler/runtime_core/static_core/runtime/core/
Dcore_language_context.cpp122 mem::GC *CoreLanguageContext::CreateGC(mem::GCType gcType, mem::ObjectAllocatorBase *objectAllocato… in CreateGC() argument
125 return mem::CreateGC<PandaAssemblyLanguageConfig>(gcType, objectAllocator, settings); in CreateGC()

123