• Home
  • Raw
  • Download

Lines Matching full:runtime

16 #include "runtime/include/thread.h"
19 #include "runtime/handle_base-inl.h"
20 #include "runtime/include/locks.h"
21 #include "runtime/include/object_header-inl.h"
22 #include "runtime/include/runtime.h"
23 #include "runtime/include/runtime_notification.h"
24 #include "runtime/include/stack_walker.h"
25 #include "runtime/include/thread_scopes.h"
26 #include "runtime/interpreter/runtime_interface.h"
27 #include "runtime/handle_scope-inl.h"
28 #include "runtime/mem/object_helpers.h"
30 #include "runtime/include/panda_vm.h"
31 #include "runtime/mem/runslots_allocator-inl.h"
69 mem::InternalAllocatorPtr allocator = Runtime::GetCurrent()->GetInternalAllocator(); in Initialize()
82 mem::InternalAllocatorPtr allocator = Runtime::GetCurrent()->GetInternalAllocator(); in Shutdown()
91 LOG(DEBUG, RUNTIME) << "Reschedule the execution of a current thread"; in Yield()
96 ManagedThread *ManagedThread::Create(Runtime *runtime, PandaVM *vm) in Create() argument
99 mem::InternalAllocatorPtr allocator = runtime->GetInternalAllocator(); in Create()
101 // runtime is destroyed in Create()
107 MTManagedThread *MTManagedThread::Create(Runtime *runtime, PandaVM *vm) in Create() argument
110 mem::InternalAllocatorPtr allocator = runtime->GetInternalAllocator(); in Create()
112 // runtime is destroyed in Create()
121 …ROUND(v.cherkashin): EcmaScript doesn't have HeapManager, so we get internal allocator from runtime in GetInternalAllocator()
126 return Runtime::GetCurrent()->GetInternalAllocator(); in GetInternalAllocator()
156 // (zero_tlab == nullptr means that we destroyed Runtime and do not need to register TLAB) in ~ManagedThread()
196 auto ext = Runtime::GetCurrent()->GetClassLinker()->GetExtension(GetLanguageContext()); in MTManagedThread()
202 LOG_IF((rs == nullptr || !rs->Init()), FATAL, RUNTIME) << "Cannot create pt reference storage"; in MTManagedThread()
224 …OG_IF(!(thread_frame_states_.empty() || thread_frame_states_.top() != NATIVE_CODE), FATAL, RUNTIME) in NativeCodeBegin()
233 …// thread_frame_states_ should not be accessed without MutatorLock (as runtime could have been des… in NativeCodeEnd()
238 LOG_IF(thread_frame_states_.empty(), FATAL, RUNTIME) << "stack should be not empty"; in NativeCodeEnd()
239 … LOG_IF(thread_frame_states_.top() != NATIVE_CODE, FATAL, RUNTIME) << LogThreadStack(NATIVE_CODE); in NativeCodeEnd()
245 LOG_IF(HasClearStack(), FATAL, RUNTIME) << "stack should be not empty"; in IsInNativeCode()
251 …// thread_frame_states_ should not be accessed without MutatorLock (as runtime could have been des… in ManagedCodeBegin()
254 LOG_IF(HasClearStack(), FATAL, RUNTIME) << "stack should be not empty"; in ManagedCodeBegin()
255 … LOG_IF(thread_frame_states_.top() != NATIVE_CODE, FATAL, RUNTIME) << LogThreadStack(MANAGED_CODE); in ManagedCodeBegin()
261 LOG_IF(HasClearStack(), FATAL, RUNTIME) << "stack should be not empty"; in ManagedCodeEnd()
262 …LOG_IF(thread_frame_states_.top() != MANAGED_CODE, FATAL, RUNTIME) << LogThreadStack(MANAGED_CODE); in ManagedCodeEnd()
271 LOG_IF(HasClearStack(), FATAL, RUNTIME) << "stack should be not empty"; in IsManagedCode()
349 LOG(DEBUG, RUNTIME) << "Adding monitor " << monitor->GetId() << " to thread " << GetId(); in AddMonitor()
356 LOG(DEBUG, RUNTIME) << "Removing monitor " << monitor->GetId(); in RemoveMonitor()
365 LOG(DEBUG, RUNTIME) << "Releasing monitor " << monitor->GetId(); in ReleaseMonitors()
383 LOG(WARNING, RUNTIME) << "Locked object is not paired"; in PopLocalObjectLocked()
388 … LOG(WARNING, RUNTIME) << "PopLocalObjectLocked failed, current thread locked object is empty"; in PopLocalObjectLocked()
414 // Runtime takes ownership of the thread in ProcessCreatedThread()
458 LOG(DEBUG, RUNTIME) << "Successfully changed priority for thread " << tid << " to " << prio; in SetThreadPriority()
460 LOG(DEBUG, RUNTIME) << "Cannot change priority for thread " << tid << " to " << prio; in SetThreadPriority()
492 LOG(DEBUG, RUNTIME) << "Interrupt a thread " << thread->GetId(); in Interrupt()
530 LOG(DEBUG, RUNTIME) << "Suspending thread " << GetId(); in SuspendImpl()
532 LOG(DEBUG, RUNTIME) << "thread " << GetId() << " is already suspended"; in SuspendImpl()
541 LOG(DEBUG, RUNTIME) << "Resuming thread " << GetId(); in ResumeImpl()
543 LOG(DEBUG, RUNTIME) << "thread " << GetId() << " is already resumed"; in ResumeImpl()
585 …UpdateStatus(TERMINATING); // Set this status to prevent runtime for destroying itself while this… in Destroy()
586 // is trying to acquire runtime. in Destroy()
588 Runtime *runtime = Runtime::GetCurrent(); in Destroy() local
590 runtime->GetNotificationManager()->ThreadEndEvent(GetId()); in Destroy()
648 mem::InternalAllocatorPtr allocator = Runtime::GetCurrent()->GetInternalAllocator(); in FreeInternalMemory()
668 if (!Runtime::GetOptions().IsSafepointBacktrace()) { in PrintSuspensionStackIfNeeded()
674 LOG(INFO, RUNTIME) << out.str(); in PrintSuspensionStackIfNeeded()