Lines Matching refs:soa
40 static ResultT GetThreadStack(const ScopedFastNativeObjectAccess& soa, in GetThreadStack() argument
45 ObjPtr<mirror::Object> decoded_peer = soa.Decode<mirror::Object>(peer); in GetThreadStack()
46 if (decoded_peer == soa.Self()->GetPeer()) { in GetThreadStack()
47 trace = fn(soa.Self(), soa); in GetThreadStack()
58 ScopedThreadSuspension sts(soa.Self(), ThreadState::kNative); in GetThreadStack()
67 ScopedObjectAccess soa2(soa.Self()); in GetThreadStack()
68 trace = fn(thread, soa); in GetThreadStack()
83 ScopedFastNativeObjectAccess soa(env); in VMStack_fillStackTraceElements() local
88 jobject trace = GetThreadStack(soa, javaThread, fn); in VMStack_fillStackTraceElements()
93 Thread::InternalStackTraceToStackTraceElementArray(soa, trace, javaSteArray, &depth); in VMStack_fillStackTraceElements()
99 ScopedFastNativeObjectAccess soa(env); in VMStack_getCallingClassLoader() local
100 NthCallerVisitor visitor(soa.Self(), 2); in VMStack_getCallingClassLoader()
106 return soa.AddLocalReference<jobject>(visitor.caller->GetDeclaringClass()->GetClassLoader()); in VMStack_getCallingClassLoader()
131 ScopedFastNativeObjectAccess soa(env); in VMStack_getClosestUserClassLoader() local
132 ClosestUserClassLoaderVisitor visitor(soa.Self()); in VMStack_getClosestUserClassLoader()
134 return soa.AddLocalReference<jobject>(visitor.class_loader); in VMStack_getClosestUserClassLoader()
139 ScopedFastNativeObjectAccess soa(env); in VMStack_getStackClass2() local
140 NthCallerVisitor visitor(soa.Self(), 3); in VMStack_getStackClass2()
146 return soa.AddLocalReference<jclass>(visitor.caller->GetDeclaringClass()); in VMStack_getStackClass2()
150 ScopedFastNativeObjectAccess soa(env); in VMStack_getThreadStackTrace() local
155 jobject trace = GetThreadStack(soa, javaThread, fn); in VMStack_getThreadStackTrace()
159 return Thread::InternalStackTraceToStackTraceElementArray(soa, trace); in VMStack_getThreadStackTrace()
163 ScopedFastNativeObjectAccess soa(env); in VMStack_getAnnotatedThreadStackTrace() local
168 return GetThreadStack(soa, javaThread, fn); in VMStack_getAnnotatedThreadStackTrace()