Lines Matching defs:soa

210 static bool IsSuspendedForDebugger(ScopedObjectAccessUnchecked& soa, Thread* thread) {
211 MutexLock mu(soa.Self(), *Locks::thread_suspend_count_lock_);
247 static JDWP::JdwpError DecodeThread(ScopedObjectAccessUnchecked& soa, JDWP::ObjectId thread_id, Thread*& thread)
257 mirror::Class* java_lang_Thread = soa.Decode<mirror::Class*>(WellKnownClasses::java_lang_Thread);
263 thread = Thread::FromManagedThread(soa, thread_peer);
461 ScopedObjectAccess soa(Thread::Current());
476 ScopedObjectAccess soa(Thread::Current());
481 ScopedObjectAccess soa(Thread::Current());
486 ScopedObjectAccess soa(Thread::Current());
694 ScopedObjectAccessUnchecked soa(Thread::Current());
695 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
697 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread);
701 if (!IsSuspendedForDebugger(soa, thread)) {
744 ScopedObjectAccessUnchecked soa(Thread::Current());
745 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
747 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread);
751 if (!IsSuspendedForDebugger(soa, thread)) {
1573 ScopedObjectAccessUnchecked soa(Thread::Current());
1574 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
1576 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread);
1584 soa.DecodeField(WellKnownClasses::java_lang_Thread_name);
1594 ScopedObjectAccess soa(Thread::Current());
1601 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
1603 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread);
1626 ScopedObjectAccess soa(Thread::Current());
1651 ScopedObjectAccessUnchecked soa(Thread::Current());
1652 mirror::ArtField* f = soa.DecodeField(WellKnownClasses::java_lang_ThreadGroup_systemThreadGroup);
1658 ScopedObjectAccess soa(Thread::Current());
1659 mirror::ArtField* f = soa.DecodeField(WellKnownClasses::java_lang_ThreadGroup_mainThreadGroup);
1697 ScopedObjectAccess soa(Thread::Current());
1701 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
1703 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread);
1712 if (IsSuspendedForDebugger(soa, thread)) {
1721 ScopedObjectAccess soa(Thread::Current());
1722 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
1724 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread);
1728 MutexLock mu2(soa.Self(), *Locks::thread_suspend_count_lock_);
1734 ScopedObjectAccess soa(Thread::Current());
1735 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
1737 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread);
1748 ThreadListVisitor(const ScopedObjectAccessUnchecked& soa, mirror::Object* desired_thread_group,
1751 : soa_(soa), desired_thread_group_(desired_thread_group), thread_ids_(thread_ids) {}
1795 ScopedObjectAccessUnchecked soa(Thread::Current());
1797 ThreadListVisitor tlv(soa, thread_group, thread_ids);
1798 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
1803 ScopedObjectAccess soa(Thread::Current());
1846 ScopedObjectAccess soa(Thread::Current());
1847 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
1849 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread);
1853 if (!IsSuspendedForDebugger(soa, thread)) {
1899 ScopedObjectAccessUnchecked soa(Thread::Current());
1900 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
1902 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread);
1906 if (!IsSuspendedForDebugger(soa, thread)) {
1915 ScopedObjectAccessUnchecked soa(Thread::Current());
1916 return gRegistry->Add(soa.Self()->GetPeer());
1930 ScopedObjectAccess soa(Thread::Current());
1931 peer.reset(soa.AddLocalReference<jobject>(gRegistry->Get<mirror::Object*>(thread_id)));
1949 ScopedObjectAccessUnchecked soa(Thread::Current());
1953 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
1954 thread = Thread::FromManagedThread(soa, peer);
1962 MutexLock mu2(soa.Self(), *Locks::thread_suspend_count_lock_);
1996 ScopedObjectAccessUnchecked soa(Thread::Current());
1999 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
2000 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread);
2004 if (!IsSuspendedForDebugger(soa, thread)) {
2141 ScopedObjectAccessUnchecked soa(Thread::Current());
2142 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
2144 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread);
2228 ScopedObjectAccessUnchecked soa(Thread::Current());
2229 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
2231 JDWP::JdwpError error = DecodeThread(soa, thread_id, thread);
2402 ScopedObjectAccessUnchecked soa(self);
2404 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
2405 error_ = DecodeThread(soa, thread_id, thread_);
2408 if (thread_ == soa.Self()) {
2411 soa.Self()->TransitionFromRunnableToSuspended(kWaitingForDebuggerSuspension);
2415 CHECK_EQ(soa.Self()->TransitionFromSuspendedToRunnable(), kWaitingForDebuggerSuspension);
2635 ScopedObjectAccessUnchecked soa(self);
2636 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
2637 JDWP::JdwpError error = DecodeThread(soa, thread_id, targetThread);
2664 MutexLock mu2(soa.Self(), *Locks::thread_suspend_count_lock_);
2807 ScopedObjectAccess soa(Thread::Current());
2811 SirtRef<mirror::Object> old_throw_this_object(soa.Self(), NULL);
2812 SirtRef<mirror::ArtMethod> old_throw_method(soa.Self(), NULL);
2813 SirtRef<mirror::Throwable> old_exception(soa.Self(), NULL);
2817 mirror::Throwable* old_exception_obj = soa.Self()->GetException(&old_throw_location);
2822 soa.Self()->ClearException();
2843 arg_array.BuildArgArray(soa, pReq->receiver_, reinterpret_cast<jvalue*>(pReq->arg_values_));
2844 InvokeWithArgArray(soa, m, &arg_array, &pReq->result_value, mh.GetShorty()[0]);
2846 mirror::Throwable* exception = soa.Self()->GetException(NULL);
2847 soa.Self()->ClearException();
2877 soa.Self()->SetException(gc_safe_throw_location, old_exception.get());
3018 ScopedObjectAccessUnchecked soa(Thread::Current());
3019 SirtRef<mirror::String> name(soa.Self(), t->GetThreadName(soa));
3046 ScopedObjectAccess soa(self);
3057 ScopedObjectAccessUnchecked soa(Thread::Current());
3569 ScopedObjectAccess soa(Thread::Current());
3570 MutexLock mu(soa.Self(), gAllocTrackerLock);