/arkcompiler/ets_runtime/test/moduletest/builtins/ |
H A D | builtinsgc.js | 21 let freesize = ArkTools.GC.getFreeHeapSize(); 26 let maxsize = ArkTools.GC.getReservedHeapSize(); 31 let usedsize = ArkTools.GC.getUsedHeapSize(); 37 let addr = ArkTools.GC.getObjectAddress(myobj); 42 let spacetype = ArkTools.GC.getObjectSpaceType(myobj); 48 ArkTools.GC.registerNativeAllocation(-1); 54 ArkTools.GC.registerNativeFree(-1); 59 ArkTools.GC.registerNativeFree(100); 60 ArkTools.GC.registerNativeAllocation(20000); 62 let gcId = ArkTools.GC [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/gc/ |
H A D | gc.cpp | 53 GC::GC(ObjectAllocatorBase *objectAllocator, const GCSettings &settings) in GC() function in ark::mem::GC 62 taskmanager::TaskType::GC, taskmanager::VMType::STATIC_VM, GC_TASK_QUEUE_PRIORITY); in GC() 67 GC::~GC() in ~GC() 94 Logger::Buffer GC::GetLogPrefix() const in GetLogPrefix() 107 GCType GC::GetType() in GetType() 112 void GC::SetPandaVM(PandaVM *vm) in SetPandaVM() 118 NativeGcTriggerType GC::GetNativeGcTriggerType() in GetNativeGcTriggerType() 123 size_t GC [all...] |
H A D | gc_root.cpp | 89 LOG(FATAL, GC) << "ROOT UNKNOWN"; in operator <<() 152 LOG(DEBUG, GC) << "Start collecting roots for thread " << thread->GetId(); in VisitRootsForThread() 155 LOG(DEBUG, GC) << " Found root for thread" << GetDebugInfoAboutObject(obj); in VisitRootsForThread() 158 LOG(DEBUG, GC) << "Finish collecting roots for thread " << thread->GetId(); in VisitRootsForThread() 167 LOG(DEBUG, GC) << " VisitRoots frame " << std::hex << stack.GetFp(); in VisitLocalRoots() 185 LOG(DEBUG, GC) << " Found root for register" << GetDebugInfoAboutObject(objectHeader); in VisitRegisterRoot() 201 LOG(DEBUG, GC) << "Start collecting AOT string slot roots"; in VisitAotStringRoots() 207 LOG(DEBUG, GC) << "Finish collecting AOT string slot roots"; in VisitAotStringRoots() 214 LOG(DEBUG, GC) << "=== AOT string slot roots update. BEGIN ==="; in UpdateAotStringRoots() 224 LOG(DEBUG, GC) << " in UpdateAotStringRoots() [all...] |
H A D | gc_queue.cpp | 30 LOG(DEBUG, GC) << "GetTask() Return INVALID_CAUSE"; in GetTask() 34 LOG(DEBUG, GC) << "Empty " << queueName_ << ", waiting..."; in GetTask() 37 LOG(DEBUG, GC) << "Empty " << queueName_ << ", return nullptr"; in GetTask() 47 LOG(DEBUG, GC) << "GetTask TimedWait"; in GetTask() 54 LOG(DEBUG, GC) << "Extract a task from a " << queueName_; in GetTask() 67 // do not duplicate GC task with the same reason. in AddTask() 71 LOG(DEBUG, GC) << "Add task to a " << queueName_; in AddTask()
|
H A D | gc_scope.cpp | 22 GCScope<TRACE_TIMING>::GCScope(std::string_view name, GC *gc) in GCScope() 27 GCScope<TRACE_TIMING_PHASE>::GCScope(std::string_view name, GC *gc, GCPhase phase) in GCScope() 32 GCScope<TIMING_PHASE>::GCScope(std::string_view name, GC *gc, GCPhase phase) in GCScope() 37 GCScope<TRACE_PHASE>::GCScope(std::string_view name, GC *gc, GCPhase phase) in GCScope()
|
H A D | gc_scope.h | 25 class GC; 41 GCScope(std::string_view name, GC *gc); 51 GCScope(std::string_view name, GC *gc, GCPhase phase); 60 GCScope(std::string_view name, GC *gc, GCPhase phase); 69 GCScope(std::string_view name, GC *gc, GCPhase phase);
|
H A D | gc_scoped_phase.cpp | 21 GCScopedPhase::GCScopedPhase(GC *gc, GCPhase newPhase) in GCScopedPhase() 29 LOG(DEBUG, GC) << "== " << GetGCName() << "::" << GetPhaseName(phase_) << " started =="; in GCScopedPhase() 38 LOG(DEBUG, GC) << "== " << GetGCName() << "::" << GetPhaseName(phase_) << " finished =="; in ~GCScopedPhase() 52 return "GC"; in GetGCName()
|
H A D | gc_barrier_set.cpp | 54 LOG(DEBUG, GC) << "GC PreSATBBarrier pre val -> new val:" << preVal; in PreSATBBarrier() 76 LOG(FATAL, GC) << "Operand " << name << " not found for pre barrier"; in GetBarrierOperand() 81 LOG(FATAL, GC) << "Operand " << name << " not found for post barrier"; in GetBarrierOperand() 96 LOG(DEBUG, GC) << "GC PostBarrier: write to " << std::hex << objAddr << " value " << storedValAddr; in PostBarrier() 118 LOG_IF(preValAddr != nullptr, DEBUG, GC) << "GC PreBarrier: with pre-value " << preValAddr; in PreBarrier() 130 LOG(DEBUG, GC) << "GC PostBarrie in PostBarrier() [all...] |
H A D | gc_adaptive_stack.h | 25 class GC; 28 * Adaptive stack with GC workers support. 37 explicit GCAdaptiveStack(GC *gc, size_t stackSizeLimit = 0, size_t newTaskStackSizeLimit = 0, 48 * GC workers with it. 102 GC *GetGC() in GetGC() 137 GC *gc_;
|
H A D | gc_scoped_phase.h | 28 class GC; 32 GCScopedPhase(GC *gc, GCPhase newPhase); 97 GC *gc_;
|
H A D | gc_marker.h | 32 explicit GCMarkerBase(GC *gc) : gc_(gc) {} in GCMarkerBase() 34 GC *GetGC() const in GetGC() 40 GC *gc_; 49 using ReferenceCheckPredicateT = typename GC::ReferenceCheckPredicateT; 51 explicit GCMarker(GC *gc) : GCMarkerBase(gc) {} in GCMarker() 91 using ReferenceCheckPredicateT = typename GC::ReferenceCheckPredicateT; 93 explicit GCMarker(GC *gc) : GCMarkerBase(gc) {} in GCMarker() 135 explicit DefaultGCMarker(GC *gc) : GCMarker<Marker, LanguageConfig::LANG_TYPE>(gc) {} in DefaultGCMarker() 242 LOG(DEBUG, GC) << " Mark check for " << std::hex << object << std::dec in MarkChecker() 365 explicit DefaultGCMarkerImpl(GC *g [all...] |
H A D | generational-gc-base.h | 26 /// Base class for generational GC 30 using ReferenceCheckPredicateT = typename GC::ReferenceCheckPredicateT; 48 majorPeriod_ = DISABLED_MAJOR_PERIOD; // Disable tenured GC temporarily. in DisableTenuredGC() 71 const GC::MarkPreprocess &markPreprocess = GC::EmptyMarkPreprocess); 75 void MarkStack(Marker *marker, GCMarkingStackType *stack, const GC::MarkPreprocess &markPreprocess, 80 * @param bytes_in_heap_before - bytes in heap before the GC 290 const GC::MarkPreprocess &markPreprocess); 294 LOG(INFO, GC) << memStats_.Dump(); 295 GC [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/gc/gc-hung/ |
H A D | gc_hung.cpp | 58 LOG(DEBUG, GC) << "GcHung: Instance created"; in GcHung() 66 LOG(DEBUG, GC) << "GcHung: Instance deleted: water_mark: " << waterMark_; in ~GcHung() 79 LOG(DEBUG, GC) << "GcHung: failed to get config"; in GetConfig() 88 LOG(ERROR, GC) << "GcHung: parse parameters failed"; in GetConfig() 97 LOG(INFO, GC) << "GcHung: module enable:" << enabled_; in GetConfig() 102 LOG(DEBUG, GC) << "GcHung: set parameter: interval_limit_ms_ = " << intervalLimitMs_ << "ms"; in GetConfig() 103 LOG(DEBUG, GC) << "GcHung: set parameter: water_mark_limit_ = " << waterMarkLimit_; in GetConfig() 104 LOG(DEBUG, GC) << "GcHung: set parameter: over_time_limit_ms_ = " << overTimeLimitMs_ << "ms"; in GetConfig() 115 LOG(DEBUG, GC) << "GcHung: load libimonitor"; in LoadLibimonitor() 156 LOG(DEBUG, GC) << "GcHun in InitInternal() [all...] |
/arkcompiler/runtime_core/static_core/libpandabase/tests/taskmanager/ |
H A D | task_test.cpp | 24 static constexpr TaskProperties TASK_PROPERTIES {TaskType::GC, VMType::STATIC_VM, TaskExecutionMode::BACKGROUND}; member in ark::taskmanager::internal::TaskTest::TaskType 52 Task task = Task::Create({TaskType::GC, VMType::DYNAMIC_VM, TaskExecutionMode::BACKGROUND}, in TEST_F() 55 EXPECT_EQ(task.GetTaskProperties().GetTaskType(), TaskType::GC); in TEST_F() 60 EXPECT_EQ(task.GetTaskProperties().GetTaskType(), TaskType::GC); in TEST_F() 70 SchedulableTaskQueueInterface *queue = TaskQueue<>::Create(TaskType::GC, VMType::DYNAMIC_VM, QUEUE_PRIORITY); in TEST_F() 71 EXPECT_EQ(queue->GetTaskType(), TaskType::GC); in TEST_F() 78 queue->AddTask(Task::Create({TaskType::GC, VMType::DYNAMIC_VM, TaskExecutionMode::BACKGROUND}, in TEST_F() 81 EXPECT_EQ(queue->GetTaskType(), TaskType::GC); in TEST_F() 89 EXPECT_EQ(popTask.value().GetTaskProperties().GetTaskType(), TaskType::GC); in TEST_F() 94 EXPECT_EQ(queue->GetTaskType(), TaskType::GC); in TEST_F() member in ark::taskmanager::internal::TaskType [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/gc/reference-processor/ |
H A D | reference_processor.h | 30 class GC; 40 using ReferenceCheckPredicateT = typename GC::ReferenceCheckPredicateT; 41 using ReferenceProcessPredicateT = typename GC::ReferenceProcessPredicateT; 42 using ReferenceProcessorT = typename GC::ReferenceProcessorT; 53 * Predicate checks GC-specific conditions on this reference (i.e. if we need to skip this reference e.g. referent 60 * Save reference for future processing and handle it with GC point of view (mark needed fields, if necessary) 63 virtual void HandleReference(GC *gc, GCMarkingStackType *objectsStack, const BaseClass *cls, 65 /// Save reference for future processing and handle it with GC point of view (traverse needed fields, if necessary) 66 virtual void HandleReference([[maybe_unused]] GC *gc, [[maybe_unused]] const BaseClass *cls, in HandleReference() 74 * Process all references which we discovered by GC [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/mem/ |
H A D | ets_reference_processor.h | 34 explicit EtsReferenceProcessor(GC *gc); 44 void HandleReference(GC *gc, GCMarkingStackType *objectsStack, const BaseClass *cls, const ObjectHeader *object, 46 void HandleReference(GC *gc, const BaseClass *cls, const ObjectHeader *object, 50 const mem::GC::ReferenceClearPredicateT &pred) final; 51 void ProcessReferencesAfterCompaction([[maybe_unused]] const mem::GC::ReferenceClearPredicateT &pred) final; 76 void ProcessReferences(const mem::GC::ReferenceClearPredicateT &pred, const Handler &handler); 86 GC *gc_ {nullptr}; 92 void EtsReferenceProcessor::ProcessReferences(const mem::GC::ReferenceClearPredicateT &pred, const Handler &handler) in ProcessReferences()
|
/arkcompiler/runtime_core/static_core/runtime/mem/gc/workers/ |
H A D | gc_worker.h | 29 class GC; 32 * @class GCWorker represents GC-worker which runs GC tasks on a non-managed thread 33 * @brief The class implements interaction between GC and GC-worker. GC-worker can be separate internal GC-thread or 45 * @param gc poiner to used GC 47 explicit GCWorker(GC *gc); 58 * @brief Add new gc task to GC worke [all...] |
H A D | gc_workers_thread_pool.h | 58 LOG(DEBUG, GC) << "Empty " << queueName_ << ", return nothing"; 63 LOG(DEBUG, GC) << "Extract a task from a " << queueName_ << ": " << GetTaskDescription(task); 70 LOG(DEBUG, GC) << "Add task to a " << queueName_ << ": " << GetTaskDescription(ctx); 77 LOG(DEBUG, GC) << "Clear a " << queueName_; 127 /// @brief GC workers task pool based on internal thread pool 132 explicit GCWorkersThreadPool(GC *gc, size_t threadsCount = 0); 155 /* GC thread pool specific variables */
|
/arkcompiler/runtime_core/static_core/runtime/mem/refstorage/ |
H A D | reference_storage.cpp | 120 LOG(ERROR, GC) << "Can't allocate local ref for object: " << object in NewRef() 133 LOG(DEBUG, GC) << "Add reference to object: " << object << " type: " << static_cast<int>(type) << " ref: " << ref; in NewRef() 146 LOG(WARNING, GC) << "Try to remove not existed ref: " << ref; in RemoveRef() 154 LOG(DEBUG, GC) << "Remove global reference: " << ref << " obj: " << globalStorage_->Get(ref); in RemoveRef() 162 LOG(DEBUG, GC) << "Remove local reference: " << ref << " obj: " << FindLocalObject(ref); in RemoveRef() 165 LOG(ERROR, GC) << "Cannot remove stack type: " << ref; in RemoveRef() 167 LOG(FATAL, GC) << "Unknown reference type: " << ref; in RemoveRef() 180 LOG(WARNING, GC) << "Try to GetObject from a not existed ref: " << ref; in GetObject() 235 LOG(ERROR, GC) << "Free size of local reference storage is less than capacity: " << capacity in PushLocalFrame() 242 LOG(FATAL, GC) << "Ca in PushLocalFrame() [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/gc/epsilon-g1/ |
H A D | epsilon-g1.cpp | 33 GC::StartGC(); in StartGC() 40 GC::StopGC(); in StopGC() 46 // GC saved the PandaVM instance, so we get allocator from the PandaVM. in InitializeImpl() 58 LOG(DEBUG, GC) << "EpsilonG1 GC initialized..."; in InitializeImpl() 65 LOG(DEBUG, GC) << "Call OnThreadTerminate"; in OnThreadTerminate() 81 LOG(DEBUG, GC) << "EpsilonG1 GC RunPhases..."; in RunPhasesImpl()
|
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/ |
H A D | update_remset_thread.cpp | 42 LOG(DEBUG, GC) << "Start creating UpdateRemsetThread"; in CreateWorkerImpl() 55 LOG(DEBUG, GC) << "Starting destroy UpdateRemsetThread"; in DestroyWorkerImpl() 66 LOG(DEBUG, GC) << "UpdateRemsetThread was destroyed"; in DestroyWorkerImpl() 72 LOG(DEBUG, GC) << "Entering UpdateRemsetThread ThreadLoop"; in ThreadLoop() 79 LOG(DEBUG, GC) << "exit UpdateRemsetThread loop, because thread was stopped"; in ThreadLoop() 83 // UpdateRemsetThread is paused by GC, wait until GC notifies to continue work in ThreadLoop() 88 // wait until GC-Thread invalidates regions in ThreadLoop() 100 LOG(DEBUG, GC) << "Exiting UpdateRemsetThread ThreadLoop"; in ThreadLoop()
|
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | rendezvous.cpp | 28 LOG(DEBUG, GC) << "Rendezvous: SafepointBegin"; in SafepointBegin() 38 LOG(DEBUG, GC) << "Rendezvous: SafepointEnd"; in SafepointEnd() 43 LOG(DEBUG, GC) << "Rendezvous: SafepointEnd exit"; in SafepointEnd()
|
H A D | object_helpers.h | 42 #define LOG_DEBUG_OBJ_HELPERS LOG(DEBUG, GC) << vm->GetGC()->GetLogPrefix() 44 class GC; 59 * Validate that object is correct from point of view of GC. 73 LOG(ERROR, GC) << " Broken object doesn't have class: " << object << " accessed from object: " << fromObject; in ValidateObject() 80 * Validate that object (which is gc-root) is correct from point of view of GC 92 LOG(FATAL, GC) << " Broken object doesn't have class: " << object << " accessed from root: " << rootType); in ValidateObject() 120 * This template is used to decrease possible performance influence of checking handler's returned value on GC pause 159 * This template is used to decrease possible performance influence of checking handler's returned value on GC pause 175 static void RecordDynWeakReference(GC *gc, coretypes::TaggedType *value); 176 static void HandleDynWeakReferences(GC *g [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/gc/stw-gc/ |
H A D | stw-gc.h | 36 explicit StwGCMarker(GC *gc) : Base(gc) {} in StwGCMarker() 49 LOG(DEBUG, GC) << "Set mark for GC " << GetDebugInfoAboutObject(object); in Mark() 52 LOG(DEBUG, GC) << "Set unmark for GC " << GetDebugInfoAboutObject(object); in Mark() 60 LOG(DEBUG, GC) << "Get marked for GC " << GetDebugInfoAboutObject(object); in IsMarked() 63 LOG(DEBUG, GC) << "Get unmarked for GC " << GetDebugInfoAboutObject(object); in IsMarked() 81 /// @brief Stop the world, non-concurrent GC [all...] |
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | gc_task.cpp | 24 void GCTask::Run(mem::GC &gc) in Run() 75 LOG(FATAL, GC) << "Unknown gc cause"; in operator <<() 100 LOG(FATAL, GC) << "Unknown collection type"; in operator <<()
|