/arkcompiler/runtime_core/static_core/runtime/mem/gc/ |
H A D | gc_types.h | 30 enum class GCType { class in ark::mem::GCExecutionMode 40 constexpr bool IsGenerationalGCType(const GCType gcType) in IsGenerationalGCType() 43 ASSERT(gcType != GCType::INVALID_GC); in IsGenerationalGCType() 45 case GCType::GEN_GC: in IsGenerationalGCType() 46 case GCType::G1_GC: in IsGenerationalGCType() 47 case GCType::EPSILON_G1_GC: in IsGenerationalGCType() 50 case GCType::INVALID_GC: in IsGenerationalGCType() 51 case GCType::EPSILON_GC: in IsGenerationalGCType() 52 case GCType::STW_GC: in IsGenerationalGCType() 61 constexpr size_t ToIndex(GCType typ [all...] |
H A D | gc_scoped_phase.cpp | 43 GCType type = gc_->GetType(); in GetGCName() 45 case GCType::EPSILON_GC: in GetGCName() 47 case GCType::STW_GC: in GetGCName() 49 case GCType::GEN_GC: in GetGCName()
|
H A D | gc_stats.h | 158 PandaString GetDump(GCType gcType); 166 PandaString GetYoungSpaceDump(GCType gcType); 167 PandaString GetAllSpacesDump(GCType gcType); 211 explicit GCStats(MemStatsType *memStats, GCType gcTypeFromRuntime, InternalAllocatorPtr allocator); 264 GCType gcType_ {GCType::INVALID_GC};
|
H A D | gc.cpp | 107 GCType GC::GetType() in GetType() 365 GCScopedStats scopedStats(GetPandaVm()->GetGCStats(), gcType_ == GCType::STW_GC ? GetStats() : nullptr); in RunPhases() 394 GC *CreateGC(GCType gcType, ObjectAllocatorBase *objectAllocator, const GCSettings &settings) in CreateGC() 400 case GCType::EPSILON_GC: in CreateGC() 403 case GCType::EPSILON_G1_GC: in CreateGC() 406 case GCType::STW_GC: in CreateGC() 409 case GCType::GEN_GC: in CreateGC() 412 case GCType::G1_GC: in CreateGC() 464 if (gcType_ != GCType::EPSILON_GC) { in AddReference()
|
H A D | gc.h | 158 GCType GetType(); 546 inline void SetType(GCType gcType) in SetType() 744 GCType gcType_ {GCType::INVALID_GC}; 808 GC *CreateGC(GCType gcType, ObjectAllocatorBase *objectAllocator, const GCSettings &settings);
|
H A D | gc_stats.cpp | 124 GCStats::GCStats(MemStatsType *memStats, GCType gcTypeFromRuntime, InternalAllocatorPtr allocator) in GCStats() 134 gcType_ = GCType::INVALID_GC; in ~GCStats() 276 PandaString GCInstanceStats::GetDump(GCType gcType) in GetDump() 312 PandaString GCInstanceStats::GetYoungSpaceDump(GCType gcType) in GetYoungSpaceDump() 336 PandaString GCInstanceStats::GetAllSpacesDump(GCType gcType) in GetAllSpacesDump()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | gc_stats.cpp | 34 PrintGCSummaryStatistic(GCType::PARTIAL_EDEN_GC); in PrintStatisticResult() 35 PrintGCSummaryStatistic(GCType::PARTIAL_YOUNG_GC); in PrintStatisticResult() 36 PrintGCSummaryStatistic(GCType::PARTIAL_OLD_GC); in PrintStatisticResult() 37 PrintGCSummaryStatistic(GCType::COMPRESS_GC); in PrintStatisticResult() 171 case GCType::PARTIAL_EDEN_GC: { in PrintGCMemoryStatistic() 182 case GCType::PARTIAL_YOUNG_GC: { in PrintGCMemoryStatistic() 193 case GCType::PARTIAL_OLD_GC: { in PrintGCMemoryStatistic() 199 case GCType::COMPRESS_GC: { in PrintGCMemoryStatistic() 214 case GCType::PARTIAL_EDEN_GC: in PrintGCDurationStatistic() 215 case GCType in PrintGCDurationStatistic() [all...] |
H A D | gc_stats.h | 32 enum class GCType : int { class 112 case GCType::PARTIAL_EDEN_GC: in GetGCTypeName() 114 case GCType::PARTIAL_YOUNG_GC: in GetGCTypeName() 116 case GCType::PARTIAL_OLD_GC: in GetGCTypeName() 118 case GCType::COMPRESS_GC: in GetGCTypeName() 120 case GCType::SHARED_GC: in GetGCTypeName() 122 case GCType::SHARED_FULL_GC: in GetGCTypeName() 134 if (gcType_ == GCType::PARTIAL_EDEN_GC) { in GetAvgSurvivalRate() 219 bool CheckIfNeedPrint(GCType type); 222 void PrintGCSummaryStatistic(GCType typ [all...] |
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | mem_stats_gen_gc_test.cpp | 180 return (gcType != GCType::G1_GC) || Runtime::GetOptions().IsG1TrackFreedObjects(); in NeedToCheckYoungFreedCount() 204 GCType gcType {}; 281 if (gcType == GCType::G1_GC && SPACE == TargetSpace::HUMONGOUS) { in MakeAllocationsWithRepeats() 537 case GCType::GEN_GC: { in IsInYoung() 540 case GCType::G1_GC: { in IsInYoung() 573 case GCType::GEN_GC: { in MakeAllocations() 579 case GCType::G1_GC: { in MakeAllocations() 669 for (int gctypeIdx = 0; static_cast<GCType>(gctypeIdx) <= GCType::GCTYPE_LAST; ++gctypeIdx) { in TEST_F() 670 auto gcTypeLocal = static_cast<GCType>(gctypeId in TEST_F() [all...] |
H A D | epsilon_gcs_test.cpp | 44 static RuntimeOptions CreateDefaultOptions(GCType gcType = GCType::EPSILON_GC) in CreateDefaultOptions() argument 49 case GCType::EPSILON_GC: in CreateDefaultOptions() 52 case GCType::EPSILON_G1_GC: in CreateDefaultOptions() 101 explicit EpsilonG1GCTest() : EpsilonGCTest(CreateDefaultOptions(GCType::EPSILON_G1_GC)) {} in EpsilonG1GCTest() 123 ASSERT_EQ(Runtime::GetCurrent()->GetPandaVM()->GetGC()->GetType(), GCType::EPSILON_GC); in TEST_F() 199 ASSERT_EQ(Runtime::GetCurrent()->GetPandaVM()->GetGC()->GetType(), GCType::EPSILON_G1_GC); in TEST_F() 253 ASSERT_EQ(gc->GetType(), GCType::EPSILON_G1_GC); in TEST_F()
|
H A D | g1gc_fullgc_test.cpp | 137 GCType gcType {}; 311 case GCType::GEN_GC: { in IsInYoung() 314 case GCType::G1_GC: { in IsInYoung() 329 std::string gctype = static_cast<std::string>(GCStringFromType(GCType::G1_GC)); in TEST_F() 404 SetupRuntime(static_cast<std::string>(GCStringFromType(GCType::G1_GC))); in TEST_F() 464 SetupRuntime(static_cast<std::string>(GCStringFromType(GCType::G1_GC))); in TEST_F()
|
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | heap_manager.cpp | 38 bool HeapManager::Initialize(GCType gcType, MTModeT multithreadingMode, bool useTlab, MemStatsType *memStats, in Initialize() 46 case GCType::EPSILON_GC: { in Initialize() 47 ret = Initialize<GCType::EPSILON_GC>(memStats, multithreadingMode, createPygoteSpace); in Initialize() 50 case GCType::EPSILON_G1_GC: { in Initialize() 51 ret = Initialize<GCType::EPSILON_G1_GC>(memStats, multithreadingMode, createPygoteSpace); in Initialize() 54 case GCType::STW_GC: { in Initialize() 55 ret = Initialize<GCType::STW_GC>(memStats, multithreadingMode, createPygoteSpace); in Initialize() 58 case GCType::GEN_GC: { in Initialize() 59 ret = Initialize<GCType::GEN_GC>(memStats, multithreadingMode, createPygoteSpace); in Initialize() 62 case GCType in Initialize() [all...] |
H A D | memory_manager.cpp | 28 GCType gcType, MemStatsType *memStats) in CreateHeapManager() 48 MemoryManager *MemoryManager::Create(const LanguageContext &ctx, InternalAllocatorPtr internalAllocator, GCType gcType, in Create() 66 (gcType != GCType::G1_GC || gcTrigger->GetType() != GCTriggerType::PAUSE_TIME_GOAL_TRIGGER)) { in Create()
|
H A D | heap_manager.h | 48 bool Initialize(GCType gcType, MTModeT multithreadingMode, bool useTlab, MemStatsType *memStats, 217 template <GCType GC_TYPE, MTModeT MT_MODE = MT_MODE_MULTI> 233 template <GCType GC_TYPE>
|
H A D | memory_manager.h | 76 static MemoryManager *Create(const LanguageContext &ctx, InternalAllocatorPtr internalAllocator, GCType gcType,
|
/arkcompiler/runtime_core/static_core/compiler/tests/ |
H A D | aot_test.cpp | 170 auto res = aotManager.AddFile(aotFname.GetFileName(), nullptr, static_cast<uint32_t>(mem::GCType::EPSILON_GC)); in TEST_F() 183 void BuildAot(const char *tmpfilePn, mem::GCType gcType) in BuildAot() 294 BuildAot(tmpfilePn, mem::GCType::STW_GC); in TEST_F() 297 auto res = aotManager.AddFile(tmpfilePn, nullptr, static_cast<uint32_t>(mem::GCType::STW_GC)); in TEST_F() 484 auto res = aotManager.AddFile(aotFname.GetFileName(), nullptr, static_cast<uint32_t>(mem::GCType::EPSILON_GC)); in TEST_F() 527 auto res = aotManager.AddFile(aotFname.GetFileName(), nullptr, static_cast<uint32_t>(mem::GCType::STW_GC)); in TEST_F() 535 auto res = aotManager.AddFile(aotFname.GetFileName(), nullptr, static_cast<uint32_t>(mem::GCType::EPSILON_GC)); in TEST_F() 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 in TEST_F() [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/gc/epsilon/ |
H A D | epsilon.h | 23 class AllocConfig<GCType::EPSILON_GC, MT_MODE> {
|
H A D | epsilon.cpp | 27 this->SetType(GCType::EPSILON_GC); in EpsilonGC()
|
/arkcompiler/runtime_core/static_core/runtime/mem/gc/epsilon-g1/ |
H A D | epsilon-g1.h | 23 class AllocConfig<GCType::EPSILON_G1_GC, MT_MODE> {
|
H A D | epsilon-g1.cpp | 26 this->SetType(GCType::EPSILON_G1_GC); in EpsilonG1GC()
|
/arkcompiler/runtime_core/static_core/compiler/aot/ |
H A D | aot_file.cpp | 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()
|
/arkcompiler/runtime_core/compiler/tests/ |
H A D | aot_test.cpp | 156 aot_manager.AddFile(aot_fname.GetFileName(), nullptr, static_cast<uint32_t>(mem::GCType::EPSILON_GC)); in TEST_F() 240 auto res = aot_manager.AddFile(tmpfile.c_str(), nullptr, static_cast<uint32_t>(mem::GCType::STW_GC)); in TEST_F() 397 aot_manager.AddFile(aot_fname.GetFileName(), nullptr, static_cast<uint32_t>(mem::GCType::EPSILON_GC)); in TEST_F() 440 auto res = aot_manager.AddFile(aot_fname.GetFileName(), nullptr, static_cast<uint32_t>(mem::GCType::STW_GC)); in TEST_F() 449 aot_manager.AddFile(aot_fname.GetFileName(), nullptr, static_cast<uint32_t>(mem::GCType::EPSILON_GC)); in TEST_F()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
H A D | ets_language_context.cpp | 58 mem::GC *EtsLanguageContext::CreateGC(mem::GCType gcType, mem::ObjectAllocatorBase *objectAllocator, in CreateGC()
|
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | file_manager.cpp | 63 ASSERT(gcType != ark::mem::GCType::INVALID_GC); in LoadAnFile()
|
/arkcompiler/runtime_core/static_core/runtime/mem/gc/stw-gc/ |
H A D | stw-gc.h | 25 class AllocConfig<GCType::STW_GC, MT_MODE> {
|