/arkcompiler/runtime_core/static_core/runtime/mem/gc/ |
D | gc_types.h | 40 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()
|
D | gc_stats.cpp | 277 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 …]
|
D | gc_stats.h | 158 PandaString GetDump(GCType gcType); 166 PandaString GetYoungSpaceDump(GCType gcType); 167 PandaString GetAllSpacesDump(GCType gcType);
|
/arkcompiler/ets_runtime/test/fuzztest/jsnapitriggergc_fuzzer/ |
D | jsnapitriggergc_fuzzer.cpp | 36 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/ |
D | memory_manager.cpp | 28 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()
|
D | heap_manager.cpp | 39 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()
|
D | memory_manager.h | 75 …yManager *Create(const LanguageContext &ctx, InternalAllocatorPtr internalAllocator, GCType gcType,
|
/arkcompiler/runtime_core/static_core/compiler/aot/ |
D | aot_file.cpp | 49 …<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()
|
D | aot_headers.h | 34 uint32_t gcType; member
|
D | aot_manager.cpp | 23 …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/ |
D | file_manager.cpp | 62 …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/ |
D | gc_log_test.cpp | 53 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()
|
D | mem_stats_gc_test.cpp | 31 void SetupRuntime(const std::string &gcType) in SetupRuntime() argument 37 options.SetGcType(gcType); in SetupRuntime()
|
D | explicit_gc_test.cpp | 55 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/ |
D | interpreter_impl.cpp | 73 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/ |
D | heap.cpp | 262 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 …]
|
D | heap.h | 99 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);
|
D | gc_stats.h | 134 void RecordStatisticBeforeGC(TriggerGCType gcType, GCReason reason); 168 GCType GetGCType(TriggerGCType gcType);
|
D | work_manager.cpp | 146 void WorkManager::Initialize(TriggerGCType gcType, ParallelGCTaskPhase taskPhase) in Initialize() argument 159 if (gcType != TriggerGCType::OLD_GC) { in Initialize()
|
D | mem_controller.cpp | 113 void MemController::StopCalculationAfterGC(TriggerGCType gcType) in StopCalculationAfterGC() argument 139 switch (gcType) { in StopCalculationAfterGC()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
D | ets_language_context.cpp | 58 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/ |
D | jsnapi.h | 262 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/ |
D | aot_builder.h | 47 void SetGcType(uint32_t gcType) in SetGcType() argument 49 gcType_ = gcType; in SetGcType()
|
/arkcompiler/runtime_core/static_core/compiler/tests/ |
D | aot_test.cpp | 497 …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/ |
D | core_language_context.cpp | 122 mem::GC *CoreLanguageContext::CreateGC(mem::GCType gcType, mem::ObjectAllocatorBase *objectAllocato… in CreateGC() argument 125 return mem::CreateGC<PandaAssemblyLanguageConfig>(gcType, objectAllocator, settings); in CreateGC()
|