• Home
  • Raw
  • Download

Lines Matching full:runtime

16 #include "runtime/include/thread-inl.h"
18 #include "runtime/handle_base-inl.h"
19 #include "runtime/include/locks.h"
20 #include "runtime/include/object_header-inl.h"
21 #include "runtime/include/runtime.h"
22 #include "runtime/include/runtime_notification.h"
23 #include "runtime/include/stack_walker.h"
24 #include "runtime/include/thread_scopes.h"
25 #include "runtime/interpreter/runtime_interface.h"
26 #include "runtime/handle_scope-inl.h"
27 #include "runtime/mem/object_helpers.h"
29 #include "runtime/include/panda_vm.h"
30 #include "runtime/mem/runslots_allocator-inl.h"
42 // runtime in GetInternalAllocator()
47 return Runtime::GetCurrent()->GetInternalAllocator(); in GetInternalAllocator()
68 auto allocator = Runtime::GetCurrent()->GetInternalAllocator(); in FreeAllocatedMemory()
110 LOG(FATAL, RUNTIME) << "Post barrier expected"; in InitCardTableData()
130 mem::InternalAllocatorPtr allocator = Runtime::GetCurrent()->GetInternalAllocator(); in Initialize()
139 mem::InternalAllocatorPtr allocator = Runtime::GetCurrent()->GetInternalAllocator(); in Shutdown()
147 LOG(DEBUG, RUNTIME) << "Reschedule the execution of a current thread"; in Yield()
152 ManagedThread *ManagedThread::Create(Runtime *runtime, PandaVM *vm, panda::panda_file::SourceLang t… in Create() argument
155 mem::InternalAllocatorPtr allocator = runtime->GetInternalAllocator(); in Create()
157 // runtime is destroyed in Create()
163 MTManagedThread *MTManagedThread::Create(Runtime *runtime, PandaVM *vm, panda::panda_file::SourceLa… in Create() argument
166 mem::InternalAllocatorPtr allocator = runtime->GetInternalAllocator(); in Create()
168 // runtime is destroyed in Create()
203 … allocator->New<mem::StackFrameAllocator>(Runtime::GetOptions().UseMallocForInternalAllocations()); in ManagedThread()
216 // (zero_tlab == nullptr means that we destroyed Runtime and do not need to register TLAB) in ~ManagedThread()
284 …LOG(ERROR, RUNTIME) << "InitForStackOverflowCheck: fail to get stack info, error = " << strerror(e… in InitForStackOverflowCheck()
291 …LOG(ERROR, RUNTIME) << "InitForStackOverflowCheck: stack size not enough, stack_base = " << stack_… in InitForStackOverflowCheck()
295 …LOG(DEBUG, RUNTIME) << "InitForStackOverflowCheck: stack_base = " << stack_base << ", stack_size =… in InitForStackOverflowCheck()
320 …LOG(DEBUG, RUNTIME) << "ProtectNativeStack: try to load pages, mprotect error = " << strerror(errn… in ProtectNativeStack()
325 … LOG(ERROR, RUNTIME) << "ProtectNativeStack: too large stack, mprotect error = " << strerror(errno) in ProtectNativeStack()
333 … LOG(ERROR, RUNTIME) << "ProtectNativeStack: fail to protect pages, error = " << strerror(errno) in ProtectNativeStack()
339 … LOG(ERROR, RUNTIME) << "ProtectNativeStack: fail to release pages, error = " << strerror(errno) in ProtectNativeStack()
377 LOG(DEBUG, RUNTIME) << "Suspending thread " << GetId(); in SuspendImpl()
380 LOG(DEBUG, RUNTIME) << "thread " << GetId() << " is already suspended"; in SuspendImpl()
394 LOG(DEBUG, RUNTIME) << "Resuming thread " << GetId(); in ResumeImpl()
397 LOG(DEBUG, RUNTIME) << "thread " << GetId() << " is already resumed"; in ResumeImpl()
424 …OG_IF(!(thread_frame_states_.empty() || thread_frame_states_.top() != NATIVE_CODE), FATAL, RUNTIME) in NativeCodeBegin()
433 …// thread_frame_states_ should not be accessed without MutatorLock (as runtime could have been des… in NativeCodeEnd()
438 LOG_IF(thread_frame_states_.empty(), FATAL, RUNTIME) << "stack should be not empty"; in NativeCodeEnd()
439 … LOG_IF(thread_frame_states_.top() != NATIVE_CODE, FATAL, RUNTIME) << LogThreadStack(NATIVE_CODE); in NativeCodeEnd()
445 LOG_IF(HasClearStack(), FATAL, RUNTIME) << "stack should be not empty"; in IsInNativeCode()
451 …// thread_frame_states_ should not be accessed without MutatorLock (as runtime could have been des… in ManagedCodeBegin()
454 LOG_IF(HasClearStack(), FATAL, RUNTIME) << "stack should be not empty"; in ManagedCodeBegin()
455 … LOG_IF(thread_frame_states_.top() != NATIVE_CODE, FATAL, RUNTIME) << LogThreadStack(MANAGED_CODE); in ManagedCodeBegin()
461 LOG_IF(HasClearStack(), FATAL, RUNTIME) << "stack should be not empty"; in ManagedCodeEnd()
462 …LOG_IF(thread_frame_states_.top() != MANAGED_CODE, FATAL, RUNTIME) << LogThreadStack(MANAGED_CODE); in ManagedCodeEnd()
471 LOG_IF(HasClearStack(), FATAL, RUNTIME) << "stack should be not empty"; in IsManagedCode()
564 auto ext = Runtime::GetCurrent()->GetClassLinker()->GetExtension(GetThreadLang()); in MTManagedThread()
570 LOG_IF((rs == nullptr || !rs->Init()), FATAL, RUNTIME) << "Cannot create pt reference storage"; in MTManagedThread()
624 LOG(WARNING, RUNTIME) << "Locked object is not paired"; in PopLocalObjectLocked()
629 … LOG(WARNING, RUNTIME) << "PopLocalObjectLocked failed, current thread locked object is empty"; in PopLocalObjectLocked()
655 // Runtime takes ownership of the thread in ProcessCreatedThread()
699 LOG(DEBUG, RUNTIME) << "Successfully changed priority for thread " << tid << " to " << prio; in SetThreadPriority()
701 LOG(DEBUG, RUNTIME) << "Cannot change priority for thread " << tid << " to " << prio; in SetThreadPriority()
750 LOG(DEBUG, RUNTIME) << "Interrupt a thread " << thread->GetId(); in Interrupt()
793 …UpdateStatus(ThreadStatus::TERMINATING); // Set this status to prevent runtime for destroying its… in Destroy()
795 // is trying to acquire runtime. in Destroy()
798 Runtime *runtime = Runtime::GetCurrent(); in Destroy() local
799 runtime->GetNotificationManager()->ThreadEndEvent(this); in Destroy()
837 return Runtime::GetCurrent()->GetLanguageContext(thread_lang_); in GetLanguageContext()
867 mem::InternalAllocatorPtr allocator = Runtime::GetCurrent()->GetInternalAllocator(); in FreeInternalMemory()
885 if (!Runtime::GetOptions().IsSafepointBacktrace()) { in PrintSuspensionStackIfNeeded()
891 LOG(INFO, RUNTIME) << out.str(); in PrintSuspensionStackIfNeeded()