/art/test/004-UnsafeTest/ |
D | unsafe_test.cc | 29 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/ |
D | java_lang_reflect_Proxy.cc | 34 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()
|
D | org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc | 45 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/ |
D | app_images.cc | 59 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/ |
D | hidden_api_test.cc | 124 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 …]
|
D | class_loader_context_test.cc | 199 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 …]
|
D | monitor_test.cc | 68 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 …]
|
D | native_bridge_art_interface.cc | 36 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()
|
D | reflection.h | 65 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/ |
D | heap_test.cc | 66 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()
|
D | system_weak_test.cc | 138 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/ |
D | entrypoint_utils.cc | 62 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/ |
D | ti_threadgroup.cc | 97 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 …]
|
D | ti_thread.cc | 193 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/ |
D | stack_inspect.cc | 47 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/ |
D | multi_checkpoint.cc | 38 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/ |
D | clear_dex_cache.cc | 34 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/ |
D | env_long_ref.cc | 27 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/ |
D | compiler_driver_test.cc | 98 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 …]
|
D | compiler_driver.cc | 396 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/ |
D | verifier_deps_test.cc | 67 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/ |
D | exception_test.cc | 56 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/ |
D | perf_jni.cc | 30 ScopedObjectAccess soa(env); in Java_JniPerfBenchmark_perfSOACall() local 34 ScopedObjectAccessUnchecked soa(Thread::Current()); in Java_JniPerfBenchmark_perfSOAUncheckedCall() local
|
/art/test/661-oat-writer-layout/ |
D | oat_writer_layout.cc | 38 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/ |
D | aget-verifier.cc | 34 ScopedObjectAccess soa(env); in Java_Main_testCompiled() local 35 ObjPtr<mirror::Executable> exec = soa.Decode<mirror::Executable>(method); in Java_Main_testCompiled()
|