Home
last modified time | relevance | path

Searched refs:soa (Results 51 – 75 of 225) sorted by relevance

123456789

/art/test/004-UnsafeTest/
Dunsafe_test.cc29 ScopedObjectAccess soa(env); in Java_Main_vmArrayBaseOffset() local
30 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(classObj); in Java_Main_vmArrayBaseOffset()
36 ScopedObjectAccess soa(env); in Java_Main_vmArrayIndexScale() local
37 ObjPtr<mirror::Class> klass = soa.Decode<mirror::Class>(classObj); in Java_Main_vmArrayIndexScale()
/art/runtime/native/
Djava_lang_reflect_Proxy.cc34 ScopedFastNativeObjectAccess soa(env); in Proxy_generateProxy() local
36 return soa.AddLocalReference<jclass>(class_linker->CreateProxyClass( in Proxy_generateProxy()
37 soa, name, interfaces, loader, methods, throws)); in Proxy_generateProxy()
Dorg_apache_harmony_dalvik_ddmc_DdmVmInternal.cc45 ScopedFastNativeObjectAccess soa(env); in DdmVmInternal_getRecentAllocations() local
62 ScopedObjectAccess soa(env); in DdmVmInternal_getStackTraceById() local
63 jobject internal_trace = self->CreateInternalStackTrace(soa); in DdmVmInternal_getStackTraceById()
64 trace = Thread::InternalStackTraceToStackTraceElementArray(soa, internal_trace); in DdmVmInternal_getStackTraceById()
80 ScopedObjectAccess soa(env); in DdmVmInternal_getStackTraceById() local
81 jobject internal_trace = thread->CreateInternalStackTrace(soa); in DdmVmInternal_getStackTraceById()
82 trace = Thread::InternalStackTraceToStackTraceElementArray(soa, internal_trace); in DdmVmInternal_getStackTraceById()
218 ScopedFastNativeObjectAccess soa(env); in DdmVmInternal_heapInfoNotify() local
/art/test/596-app-images/
Dapp_images.cc59 ScopedObjectAccess soa(Thread::Current()); in Java_Main_checkAppImageLoaded() local
77 ScopedObjectAccess soa(Thread::Current()); in Java_Main_checkAppImageContains() local
78 ObjPtr<mirror::Class> klass_ptr = soa.Decode<mirror::Class>(c); in Java_Main_checkAppImageContains()
94 ScopedObjectAccess soa(Thread::Current()); in Java_Main_checkInitialized() local
95 ObjPtr<mirror::Class> klass_ptr = soa.Decode<mirror::Class>(c); in Java_Main_checkInitialized()
/art/runtime/
Dhidden_api_test.cc124 ScopedObjectAccess soa(self_); in TEST_F() local
209 ScopedObjectAccess soa(self_); in TEST_F() local
268 ScopedObjectAccess soa(self_); in TEST_F() local
287 ScopedObjectAccess soa(self_); in TEST_F() local
306 ScopedObjectAccess soa(self_); in TEST_F() local
322 ScopedObjectAccess soa(self_); in TEST_F() local
337 ScopedObjectAccess soa(self_); in TEST_F() local
350 ScopedObjectAccess soa(self_); in TEST_F() local
361 ScopedObjectAccess soa(self_); in TEST_F() local
371 ScopedObjectAccess soa(self_); in TEST_F() local
[all …]
Dclass_loader_context_test.cc199 void VerifyClassLoaderDexFiles(ScopedObjectAccess& soa, in VerifyClassLoaderDexFiles() argument
204 ASSERT_TRUE(class_loader->GetClass() == soa.Decode<mirror::Class>(type)); in VerifyClassLoaderDexFiles()
206 std::vector<const DexFile*> class_loader_dex_files = GetDexFiles(soa, class_loader); in VerifyClassLoaderDexFiles()
546 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
548 StackHandleScope<1> hs(soa.Self()); in TEST_F()
550 soa.Decode<mirror::ClassLoader>(jclass_loader)); in TEST_F()
553 soa.Decode<mirror::Class>(WellKnownClasses::dalvik_system_PathClassLoader)); in TEST_F()
555 soa.Decode<mirror::Class>(WellKnownClasses::java_lang_BootClassLoader)); in TEST_F()
564 VerifyClassLoaderDexFiles(soa, in TEST_F()
582 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
[all …]
Dmonitor_test.cc68 ScopedObjectAccess soa(self); in Run() local
98 ScopedObjectAccess soa(self); in Run() local
117 ScopedObjectAccess soa(self); in Run() local
144 ScopedObjectAccess soa(self); in Run() local
182 ScopedObjectAccess soa(self); in Run() local
221 ScopedObjectAccess soa(self); in Run() local
247 ScopedObjectAccess soa(self); in CommonWaitSetup() local
249 StackHandleScope<3> hs(soa.Self()); in CommonWaitSetup()
261 VariableSizedHandleScope vhs(soa.Self()); in CommonWaitSetup()
262 test->FillHeap(soa.Self(), class_linker, &vhs); in CommonWaitSetup()
[all …]
Dnative_bridge_art_interface.cc36 ScopedObjectAccess soa(env); in GetMethodShorty() local
46 ScopedObjectAccess soa(env); in GetNativeMethodCount() local
47 ObjPtr<mirror::Class> c = soa.Decode<mirror::Class>(clazz); in GetNativeMethodCount()
61 ScopedObjectAccess soa(env); in GetNativeMethods() local
62 ObjPtr<mirror::Class> c = soa.Decode<mirror::Class>(clazz); in GetNativeMethods()
Dreflection.h65 JValue InvokeWithVarArgs(const ScopedObjectAccessAlreadyRunnable& soa,
73 JValue InvokeWithJValues(const ScopedObjectAccessAlreadyRunnable& soa,
83 JValue InvokeVirtualOrInterfaceWithJValues(const ScopedObjectAccessAlreadyRunnable& soa,
93 JValue InvokeVirtualOrInterfaceWithVarArgs(const ScopedObjectAccessAlreadyRunnable& soa,
100 jobject InvokeMethod(const ScopedObjectAccessAlreadyRunnable& soa,
109 void InvokeConstructor(const ScopedObjectAccessAlreadyRunnable& soa,
/art/runtime/gc/
Dheap_test.cc66 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
69 StackHandleScope<1> hs(soa.Self()); in TEST_F()
71 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"))); in TEST_F()
73 StackHandleScope<1> hs2(soa.Self()); in TEST_F()
75 mirror::ObjectArray<mirror::Object>::Alloc(soa.Self(), c.Get(), 2048))); in TEST_F()
78 mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello, world!"); in TEST_F()
Dsystem_weak_test.cc138 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
140 StackHandleScope<1> hs(soa.Self()); in TEST_F()
143 Handle<mirror::String> s(hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
163 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
165 cswh.Set(GcRoot<mirror::Object>(mirror::String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
183 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
185 StackHandleScope<1> hs(soa.Self()); in TEST_F()
188 Handle<mirror::String> s(hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
/art/runtime/entrypoints/
Dentrypoint_utils.cc62 JValue InvokeProxyInvocationHandler(ScopedObjectAccessAlreadyRunnable& soa, in InvokeProxyInvocationHandler() argument
67 DCHECK(soa.Env()->IsInstanceOf(rcvr_jobj, WellKnownClasses::java_lang_reflect_Proxy)); in InvokeProxyInvocationHandler()
70 soa.Self()->AssertThreadSuspensionIsAllowable(); in InvokeProxyInvocationHandler()
76 args_jobj = soa.Env()->NewObjectArray(args.size(), WellKnownClasses::java_lang_Object, nullptr); in InvokeProxyInvocationHandler()
78 CHECK(soa.Self()->IsExceptionPending()); in InvokeProxyInvocationHandler()
84 soa.Env()->SetObjectArrayElement(args_jobj, i, val); in InvokeProxyInvocationHandler()
90 CHECK(soa.Self()->IsExceptionPending()); in InvokeProxyInvocationHandler()
93 soa.Decode<mirror::ObjectArray<mirror::Object>>(args_jobj)->Set<false>(i, val); in InvokeProxyInvocationHandler()
104 soa.Env()->CallStaticObjectMethodA(WellKnownClasses::java_lang_reflect_Proxy, in InvokeProxyInvocationHandler()
109 if (LIKELY(!soa.Self()->IsExceptionPending())) { in InvokeProxyInvocationHandler()
[all …]
/art/openjdkjvmti/
Dti_threadgroup.cc97 art::ScopedObjectAccess soa(art::Thread::Current()); in GetThreadGroupInfo() local
98 if (soa.Env()->IsInstanceOf(group, art::WellKnownClasses::java_lang_ThreadGroup) == JNI_FALSE) { in GetThreadGroupInfo()
102 art::StackHandleScope<2> hs(soa.Self()); in GetThreadGroupInfo()
104 hs.NewHandle(soa.Decode<art::mirror::Class>(art::WellKnownClasses::java_lang_ThreadGroup))); in GetThreadGroupInfo()
105 art::Handle<art::mirror::Object> obj(hs.NewHandle(soa.Decode<art::mirror::Object>(group))); in GetThreadGroupInfo()
138 : soa.AddLocalReference<jthreadGroup>(parent_group); in GetThreadGroupInfo()
227 art::ScopedObjectAccess soa(art::Thread::Current()); in GetThreadGroupChildren() local
229 if (!soa.Env()->IsInstanceOf(group, art::WellKnownClasses::java_lang_ThreadGroup)) { in GetThreadGroupChildren()
233 art::StackHandleScope<1> hs(soa.Self()); in GetThreadGroupChildren()
235 soa.Decode<art::mirror::Object>(group)); in GetThreadGroupChildren()
[all …]
Dti_thread.cc193 art::ScopedObjectAccess soa(self); in CacheData() local
195 soa.Decode<art::mirror::Class>(art::WellKnownClasses::java_lang_Thread); in CacheData()
216 art::ScopedObjectAccess soa(self); in GetCurrentThread() local
222 thread_peer = soa.AddLocalReference<jthread>(self->GetPeer()); in GetCurrentThread()
231 const art::ScopedObjectAccessAlreadyRunnable& soa, in GetNativeThread() argument
234 art::ScopedExceptionStorage sse(soa.Self()); in GetNativeThread()
238 } else if (!soa.Env()->IsInstanceOf(thread, art::WellKnownClasses::java_lang_Thread)) { in GetNativeThread()
242 *thr = art::Thread::FromManagedThread(soa, thread); in GetNativeThread()
248 const art::ScopedObjectAccessAlreadyRunnable& soa, in GetAliveNativeThread() argument
251 if (!GetNativeThread(thread, soa, thr, err)) { in GetAliveNativeThread()
[all …]
/art/test/common/
Dstack_inspect.cc47 ScopedObjectAccess soa(env); in IsInterpreted() local
48 NthCallerVisitor caller(soa.Self(), level, false); in IsInterpreted()
116 ScopedObjectAccess soa(env); in Java_Main_isInterpretedFunction() local
119 if (!IsMethodInterpreted(soa.Self(), goal, require_deoptimizable, &is_interpreted)) { in Java_Main_isInterpretedFunction()
138 ScopedObjectAccess soa(env); in IsManaged() local
139 NthCallerVisitor caller(soa.Self(), level, false); in IsManaged()
189 ScopedObjectAccess soa(env); in Java_Main_getThisOfCaller() local
201 result = soa.AddLocalReference<jobject>(stack_visitor->GetThisObject()); in Java_Main_getThisOfCaller()
204 soa.Self(), in Java_Main_getThisOfCaller()
/art/test/203-multi-checkpoint/
Dmulti_checkpoint.cc38 ScopedObjectAccess soa(self); in Run() local
67 ScopedObjectAccess soa(self); in Run() local
79 ScopedObjectAccess soa(self); in Java_Main_pushCheckpoints() local
81 Thread* target = Thread::FromManagedThread(soa, thr); in Java_Main_pushCheckpoints()
/art/test/497-inlining-and-class-loader/
Dclear_dex_cache.cc34 ScopedObjectAccess soa(Thread::Current()); in Java_Main_cloneResolvedMethods() local
35 ObjPtr<mirror::DexCache> dex_cache = soa.Decode<mirror::Class>(cls)->GetDexCache(); in Java_Main_cloneResolvedMethods()
49 ObjPtr<mirror::Array> decoded_array = soa.Decode<mirror::Array>(array); in Java_Main_cloneResolvedMethods()
69 ScopedObjectAccess soa(Thread::Current()); in Java_Main_restoreResolvedMethods() local
70 ObjPtr<mirror::DexCache> dex_cache = soa.Decode<mirror::Class>(cls)->GetDexCache(); in Java_Main_restoreResolvedMethods()
74 ObjPtr<mirror::Array> old = soa.Decode<mirror::Array>(old_cache); in Java_Main_restoreResolvedMethods()
/art/test/543-env-long-ref/
Denv_long_ref.cc27 ScopedObjectAccess soa(Thread::Current()); in Java_Main_lookForMyRegisters() local
45 soa.Decode<mirror::Object>(value).Ptr()); in Java_Main_lookForMyRegisters()
49 soa.Self(), in Java_Main_lookForMyRegisters()
/art/dex2oat/driver/
Dcompiler_driver_test.cc98 ScopedObjectAccess soa(Thread::Current()); in MakeDexFileExecutable() local
99 StackHandleScope<1> hs(soa.Self()); in MakeDexFileExecutable()
101 hs.NewHandle(soa.Decode<mirror::ClassLoader>(class_loader))); in MakeDexFileExecutable()
102 ObjPtr<mirror::Class> c = class_linker->FindClass(soa.Self(), descriptor, loader); in MakeDexFileExecutable()
123 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
126 ObjPtr<mirror::DexCache> dex_cache = class_linker_->FindDexCache(soa.Self(), dex); in TEST_F()
170 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
193 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
201 ScopedObjectAccess soa(Thread::Current()); in GetProfileCompilationInfo() local
238 ScopedObjectAccess soa(self); in CheckCompiledMethods() local
[all …]
Dcompiler_driver.cc396 ScopedObjectAccess soa(self); in GetDexToDexCompilationLevel() local
397 StackHandleScope<1> hs(soa.Self()); in GetDexToDexCompilationLevel()
399 hs.NewHandle(soa.Decode<mirror::ClassLoader>(jclass_loader))); in GetDexToDexCompilationLevel()
460 ScopedObjectAccess soa(self); in CompileMethodHarness() local
676 ScopedObjectAccess soa(Thread::Current()); in ResolveConstStrings() local
677 StackHandleScope<1> hs(soa.Self()); in ResolveConstStrings()
683 dex_cache.Assign(class_linker->FindDexCache(soa.Self(), *dex_file)); in ResolveConstStrings()
796 ScopedObjectAccess soa(Thread::Current()); in InitializeTypeCheckBitstrings() local
797 StackHandleScope<1> hs(soa.Self()); in InitializeTypeCheckBitstrings()
802 dex_cache.Assign(class_linker->FindDexCache(soa.Self(), *dex_file)); in InitializeTypeCheckBitstrings()
[all …]
/art/dex2oat/
Dverifier_deps_test.cc67 ObjPtr<mirror::Class> FindClassByName(ScopedObjectAccess& soa, const std::string& name) in FindClassByName() argument
69 StackHandleScope<1> hs(soa.Self()); in FindClassByName()
71 hs.NewHandle(soa.Decode<mirror::ClassLoader>(class_loader_))); in FindClassByName()
73 class_linker_->FindClass(soa.Self(), name.c_str(), class_loader_handle); in FindClassByName()
75 DCHECK(soa.Self()->IsExceptionPending()); in FindClassByName()
76 soa.Self()->ClearException(); in FindClassByName()
115 void LoadDexFile(ScopedObjectAccess& soa, const char* name1, const char* name2 = nullptr) in LoadDexFile() argument
122 StackHandleScope<1> hs(soa.Self()); in LoadDexFile()
124 hs.NewHandle(soa.Decode<mirror::ClassLoader>(class_loader_)); in LoadDexFile()
134 void LoadDexFile(ScopedObjectAccess& soa) REQUIRES_SHARED(Locks::mutator_lock_) { in LoadDexFile() argument
[all …]
/art/compiler/
Dexception_test.cc56 ScopedObjectAccess soa(Thread::Current()); in SetUp() local
57 StackHandleScope<2> hs(soa.Self()); in SetUp()
59 hs.NewHandle(soa.Decode<mirror::ClassLoader>(LoadDex("ExceptionHandle")))); in SetUp()
60 my_klass_ = class_linker_->FindClass(soa.Self(), "LExceptionHandle;", class_loader); in SetUp()
63 class_linker_->EnsureInitialized(soa.Self(), klass, true, true); in SetUp()
130 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
170 ScopedObjectAccess soa(env); in TEST_F() local
216 jobject internal = thread->CreateInternalStackTrace(soa); in TEST_F()
218 jobjectArray ste_array = Thread::InternalStackTraceToStackTraceElementArray(soa, internal); in TEST_F()
220 auto trace_array = soa.Decode<mirror::ObjectArray<mirror::StackTraceElement>>(ste_array); in TEST_F()
/art/benchmark/jni-perf/
Dperf_jni.cc30 ScopedObjectAccess soa(env); in Java_JniPerfBenchmark_perfSOACall() local
34 ScopedObjectAccessUnchecked soa(Thread::Current()); in Java_JniPerfBenchmark_perfSOAUncheckedCall() local
/art/test/661-oat-writer-layout/
Doat_writer_layout.cc38 ScopedObjectAccess soa(env); in Java_Main_getOatMethodQuickCode() local
39 ObjPtr<mirror::Executable> exec = soa.Decode<mirror::Executable>(method); in Java_Main_getOatMethodQuickCode()
52 ScopedObjectAccess soa(env); in Java_Main_hasOatCompiledCode() local
/art/test/664-aget-verifier/
Daget-verifier.cc34 ScopedObjectAccess soa(env); in Java_Main_testCompiled() local
35 ObjPtr<mirror::Executable> exec = soa.Decode<mirror::Executable>(method); in Java_Main_testCompiled()

123456789