Home
last modified time | relevance | path

Searched refs:GetVM (Results 1 – 25 of 27) sorted by relevance

12

/ark/runtime_core/runtime/
Dobject_accessor-impl.cpp36 return Thread::GetCurrent()->GetVM()->GetGC()->GetBarrierSet(); in GetBarrierSet()
47 return thread->GetVM()->GetGC()->GetBarrierSet(); in GetBarrierSet()
Dthread.cpp44 internal_id_ = GetVM()->GetThreadManager()->GetInternalThreadId(); in GetInternalId()
122 mem::HeapManager *heap_manager = thread->GetVM()->GetHeapManager(); in GetInternalAllocator()
159 GetVM()->GetHeapManager()->RegisterTLAB(GetTLAB()); in ~ManagedThread()
178 internal_id_ = GetVM()->GetThreadManager()->GetInternalThreadId(); in MTManagedThread()
209 GetVM()->GetThreadManager()->RemoveInternalThreadId(internal_id_); in ~MTManagedThread()
324 ASSERT(!ManagedThread::GetCurrent()->GetVM()->GetGC()->IsGCRunning() || in PushLocalObject()
333 ASSERT(!ManagedThread::GetCurrent()->GetVM()->GetGC()->IsGCRunning() || in PopLocalObject()
416 GetVM()->GetThreadManager()->RegisterThread(this); in ProcessCreatedThread()
485 GetVM()->GetThreadManager()->AddDaemonThread(); in SetDaemon()
600 if (GetVM()->GetThreadManager()->UnregisterExitedThread(this)) { in Destroy()
[all …]
Dmonitor.cpp113 PandaVM *vm = thread->GetVM(); in MonitorEnter()
196 … owner = thread->GetVM()->GetThreadManager()->SuspendAndWaitThreadByInternalThreadId( in MonitorEnter()
281 PandaVM *vm = thread->GetVM(); in MonitorExit()
340 PandaVM *vm = thread->GetVM(); in Wait()
452 auto monitor = MonitorPool::LookupMonitor(thread->GetVM(), mark.GetMonitorId()); in Notify()
500 auto monitor = MonitorPool::LookupMonitor(thread->GetVM(), mark.GetMonitorId()); in NotifyAll()
694 monitor = MonitorPool::CreateMonitor(thread->GetVM(), obj); in Acquire()
705 MonitorPool::FreeMonitor(thread->GetVM(), monitor->GetId()); in Acquire()
738 MonitorPool::FreeMonitor(thread->GetVM(), monitor->GetId()); in Acquire()
758 PandaVM *vm = Thread::GetCurrent()->GetVM(); in Acquire()
[all …]
Dobject_header.cpp43 mem::HeapManager *heap_manager = Thread::GetCurrent()->GetVM()->GetHeapManager(); in CreateObject()
110 … auto monitor_p = MonitorPool::LookupMonitor(Thread::GetCurrent()->GetVM(), monitor_id); in GetHashCode()
140 mem::HeapManager *heap_manager = thread->GetVM()->GetHeapManager(); in ShallowCopy()
177 auto *barrier_set = thread->GetVM()->GetGC()->GetBarrierSet(); in ShallowCopy()
Ddyn_class_linker_extension.cpp163 auto vm = Thread::GetCurrent()->GetVM(); in CreateClass()
Dmethod.cpp634 …ASSERT(!ManagedThread::GetCurrent()->GetVM()->GetGC()->IsGCRunning() || Locks::mutator_lock->HasLo… in StartProfiling()
679 …ASSERT(!ManagedThread::GetCurrent()->GetVM()->GetGC()->IsGCRunning() || Locks::mutator_lock->HasLo… in StopProfiling()
/ark/runtime_core/runtime/tests/
Dpygote_space_allocator_test_base.h42 …return thread_->GetVM()->GetHeapManager()->GetObjectAllocator().AsObjectAllocator()->GetPygoteSpac… in GetPygoteSpaceAllocator()
63 auto gc = thread_->GetVM()->GetGC(); in TriggerGc()
128 auto global_object_storage = thread_->GetVM()->GetGlobalObjectStorage(); in NonMovableLiveObjectAllocTest()
156 auto global_object_storage = thread_->GetVM()->GetGlobalObjectStorage(); in NonMovableUnliveObjectAllocTest()
181 auto global_object_storage = thread_->GetVM()->GetGlobalObjectStorage(); in MovableLiveObjectAllocTest()
204 auto global_object_storage = thread_->GetVM()->GetGlobalObjectStorage(); in MovableUnliveObjectAllocTest()
228 auto global_object_storage = thread_->GetVM()->GetGlobalObjectStorage(); in MuchObjectAllocTest()
Dmem_stats_test.cpp161 auto *stats = thread_->GetVM()->GetMemStats(); in TEST_F()
187 mem::MemStatsType *stats = thread_->GetVM()->GetMemStats(); in TEST_F()
213 mem::MemStatsType *stats = thread_->GetVM()->GetMemStats(); in TEST_F()
238 mem::MemStatsType *stats = thread_->GetVM()->GetMemStats(); in TEST_F()
248 thread_->GetVM()->GetGC()->WaitForGCInManaged(GCTask(GCTaskCause::EXPLICIT_CAUSE)); in TEST_F()
260 mem::MemStatsType *stats = thread_->GetVM()->GetMemStats(); in TEST_F()
265 …auto object_allocator = thread_->GetVM()->GetHeapManager()->GetObjectAllocator().AsObjectAllocator… in TEST_F()
275 thread_->GetVM()->GetGC()->WaitForGCInManaged(GCTask(GCTaskCause::EXPLICIT_CAUSE)); in TEST_F()
288 mem::MemStatsType *stats = thread_->GetVM()->GetMemStats(); in TEST_F()
293 …auto object_allocator = thread_->GetVM()->GetHeapManager()->GetObjectAllocator().AsObjectAllocator… in TEST_F()
[all …]
Dmem_stats_gc_test.cpp63 mem::MemStatsType *stats = thread_->GetVM()->GetMemStats(); in MemStatsTest()
75 …auto object_allocator = thread_->GetVM()->GetHeapManager()->GetObjectAllocator().AsObjectAllocator… in MemStatsTest()
76 thread_->GetVM()->GetGC()->WaitForGCInManaged(GCTask(GCTaskCause::EXPLICIT_CAUSE)); in MemStatsTest()
112 thread_->GetVM()->GetGC()->WaitForGCInManaged(GCTask(GCTaskCause::EXPLICIT_CAUSE)); in MemStatsTest()
Dmem_stats_additional_info_test.cpp64 …interpret_cast<const uint8_t *>(&simple_string[0]), simple_string.length(), ctx, thread_->GetVM()); in TEST_F()
83 PandaVM *vm = thread_->GetVM(); in TEST_F()
92 auto statistics = thread_->GetVM()->GetMemStats()->GetStatistics(vm->GetHeapManager()); in TEST_F()
Dstring_table_test.cpp136 auto table = thread_->GetVM()->GetStringTable(); in TEST_F()
154 … thread_->GetVM()->GetGC()->WaitForGCInManaged(panda::GCTask(panda::GCTaskCause::EXPLICIT_CAUSE)); in TEST_F()
Dclass_linker_test_extension.h79 auto vm = thread_->GetVM(); in CreateClass()
Dmonitor_test.cpp244 thread_->GetVM()->GetGC()->WaitForGCInManaged(GCTask(GCTaskCause::EXPLICIT_CAUSE)); in TEST_F()
248 thread_->GetVM()->GetGC()->WaitForGCInManaged(GCTask(GCTaskCause::EXPLICIT_CAUSE)); in TEST_F()
Dcard_table_test.cpp57 internal_allocator_ = thread_->GetVM()->GetHeapManager()->GetInternalAllocator(); in CardTableTest()
Dclass_linker_test.cpp69 auto allocator = thread->GetVM()->GetHeapManager()->GetInternalAllocator(); in CreateClassLinker()
/ark/runtime_core/runtime/mem/
Drendezvous.cpp30 Thread::GetCurrent()->GetVM()->GetThreadManager()->SuspendAllThreads(); in SafepointBegin()
42 Thread::GetCurrent()->GetVM()->GetThreadManager()->ResumeAllThreads(); in SafepointEnd()
Dallocator.cpp487 Thread::GetCurrent()->GetVM()->GetThreadManager()->EnumerateThreads( in ResetYoungAllocator()
/ark/js_runtime/ecmascript/
Djs_thread.cpp62 EcmaVM::Cast(GetVM())->GetChunk()->Delete(globalStorage_); in ~JSThread()
80 return EcmaVM::Cast(GetVM()); in GetEcmaVM()
266 EcmaVM::Cast(GetVM())->CollectGarbage(TriggerGCType::FULL_GC); in CheckSafepoint()
270 auto heap = EcmaVM::Cast(GetVM())->GetHeap(); in CheckSafepoint()
/ark/runtime_core/runtime/tests/interpreter/
Dtest_runtime_interface.h367 auto allocator = Thread::GetCurrent()->GetVM()->GetHeapManager()->GetInternalAllocator(); in CreateFrame()
381 auto allocator = Thread::GetCurrent()->GetVM()->GetHeapManager()->GetInternalAllocator(); in CreateFrameWithActualArgs()
392 auto allocator = Thread::GetCurrent()->GetVM()->GetHeapManager()->GetInternalAllocator(); in FreeFrame()
/ark/runtime_core/runtime/include/
Dpanda_vm.h50 return Thread::GetCurrent()->GetVM(); in GetCurrent()
Dthread.h163 PandaVM *GetVM() const in GetVM() function
/ark/runtime_core/runtime/entrypoints/
Dentrypoints.cpp119 …Frame *mem = Thread::GetCurrent()->GetVM()->GetHeapManager()->AllocateFrame(panda::Frame::GetSize(… in CreateFrame()
/ark/runtime_core/runtime/mem/gc/
Dgc_trigger.cpp63 GC *gc = Thread::GetCurrent()->GetVM()->GetGC(); in ComputeNewTargetFootprint()
/ark/runtime_core/runtime/core/
Dcore_vm.cpp235 …s::Array *arg_array = CreateArgumentsArray(args, ctx, runtime_->GetClassLinker(), thread->GetVM()); in InvokeEntrypointImpl()
Dcore_class_linker_extension.cpp305 auto vm = Thread::GetCurrent()->GetVM(); in CreateClass()

12