/art/runtime/ |
D | method_handles_test.cc | 83 StackHandleScope<2> hs(soa.Self()); in TEST_F() 87 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F() 89 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F() 95 StackHandleScope<2> hs(soa.Self()); in TEST_F() 100 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F() 101 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F() 108 StackHandleScope<2> hs(soa.Self()); in TEST_F() 112 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F() 113 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F() 120 StackHandleScope<2> hs(soa.Self()); in TEST_F() [all …]
|
D | intern_table_test.cc | 35 StackHandleScope<4> hs(soa.Self()); in TEST_F() 39 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F() 59 StackHandleScope<1> hs(soa.Self()); in TEST_F() 61 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F() 78 GcRoot<mirror::String> str(mirror::String::AllocFromModifiedUtf8(soa.Self(), "00000000")); in TEST_F() 119 StackHandleScope<5> hs(soa.Self()); in TEST_F() 121 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello"))); in TEST_F() 123 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "world"))); in TEST_F() 134 ReaderMutexLock mu(soa.Self(), *Locks::heap_bitmap_lock_); in TEST_F() 142 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "still here"))); in TEST_F() [all …]
|
D | transaction_test.cc | 36 StackHandleScope<2> hs(soa.Self()); in testTransactionAbort() 45 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), in testTransactionAbort() 48 class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort() 51 h_klass.Assign(class_linker_->FindSystemClass(soa.Self(), in testTransactionAbort() 54 class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort() 58 h_klass.Assign(class_linker_->FindClass(soa.Self(), "LTransaction$AbortHelperClass;", in testTransactionAbort() 61 class_linker_->VerifyClass(soa.Self(), h_klass); in testTransactionAbort() 65 h_klass.Assign(class_linker_->FindClass(soa.Self(), tested_class_signature, class_loader)); in testTransactionAbort() 67 class_linker_->VerifyClass(soa.Self(), h_klass); in testTransactionAbort() 74 bool success = class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort() [all …]
|
D | proxy_test.cc | 49 StackHandleScope<4> hs(soa.Self()); in TEST_F() 54 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader))); in TEST_F() 56 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader))); in TEST_F() 71 EXPECT_OBJ_PTR_EQ(I.Get(), mirror::Class::GetDirectInterface(soa.Self(), proxy_class.Get(), 0)); in TEST_F() 72 EXPECT_OBJ_PTR_EQ(J.Get(), mirror::Class::GetDirectInterface(soa.Self(), proxy_class.Get(), 1)); in TEST_F() 83 StackHandleScope<9> hs(soa.Self()); in TEST_F() 88 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader))); in TEST_F() 90 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader))); in TEST_F() 114 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Class;"))); in TEST_F() 117 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Class;"))); in TEST_F() [all …]
|
D | class_linker_test.cc | 886 StackHandleScope<1> hs(soa.Self()); in TEST_F() 890 ObjPtr<mirror::Class> outer = class_linker_->FindClass(soa.Self(), "LNested;", class_loader); in TEST_F() 896 class_linker_->FindClass(soa.Self(), "LNested$Inner;", class_loader); in TEST_F() 918 StackHandleScope<2> hs(soa.Self()); in TEST_F() 920 class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;")); in TEST_F() 926 ObjPtr<mirror::Class> MyClass = class_linker_->FindClass(soa.Self(), "LMyClass;", class_loader); in TEST_F() 971 StackHandleScope<1> hs(soa.Self()); in TEST_F() 975 ObjPtr<mirror::Class> klass = class_linker_->FindClass(soa.Self(), "LMyClass;", class_loader); in TEST_F() 991 StackHandleScope<2> hs(soa.Self()); in TEST_F() 996 = class_linker_->FindClass(soa.Self(), "LAllFields;", class_loader); in TEST_F() [all …]
|
D | proxy_test.h | 42 StackHandleScope<1> hs(soa.Self()); in GenerateProxyClass() 51 soa.Self()->AssertNoPendingException(); in GenerateProxyClass() 66 soa.Self()->AssertNoPendingException(); in GenerateProxyClass() 79 mirror::Method::CreateFromArtMethod<kRuntimePointerSize, false>(soa.Self(), method))); in GenerateProxyClass() 86 mirror::Method::CreateFromArtMethod<kRuntimePointerSize, false>(soa.Self(), method))); in GenerateProxyClass() 94 mirror::Method::CreateFromArtMethod<kRuntimePointerSize, false>(soa.Self(), method))); in GenerateProxyClass() 100 mirror::Method::CreateFromArtMethod<kRuntimePointerSize, false>(soa.Self(), &m))); in GenerateProxyClass() 107 soa.Self()->AssertNoPendingException(); in GenerateProxyClass() 116 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
|
D | scoped_thread_state_change-inl.h | 81 Locks::mutator_lock_->AssertSharedHeld(Self()); in AddLocalReference() 91 Locks::mutator_lock_->AssertSharedHeld(Self()); in Decode() 93 return ObjPtr<T>::DownCast(Self()->DecodeJObject(obj)); in Decode() 109 : ScopedObjectAccessAlreadyRunnable(env), tsc_(Self(), kRunnable) { in ScopedObjectAccessUnchecked() 110 Self()->VerifyStack(); in ScopedObjectAccessUnchecked() 111 Locks::mutator_lock_->AssertSharedHeld(Self()); in ScopedObjectAccessUnchecked() 116 Self()->VerifyStack(); in ScopedObjectAccessUnchecked() 117 Locks::mutator_lock_->AssertSharedHeld(Self()); in ScopedObjectAccessUnchecked()
|
D | handle_scope_test.cc | 51 StackHandleScope<0x1> hs0(soa.Self()); in TEST_F() 53 StackHandleScope<kNumReferences> test_table(soa.Self()); in TEST_F() 54 ObjPtr<mirror::Class> c = class_linker->FindSystemClass(soa.Self(), "Ljava/lang/Object;"); in TEST_F() 94 VariableSizedHandleScope hs(soa.Self()); in TEST_F() 97 hs.NewHandle(class_linker->FindSystemClass(soa.Self(), "Ljava/lang/Object;")); in TEST_F() 99 StackHandleScope<1> inner(soa.Self()); in TEST_F() 100 inner.NewHandle(c->AllocObject(soa.Self())); in TEST_F() 106 ObjPtr<mirror::Object> o = c->AllocObject(soa.Self()); in TEST_F()
|
D | reference_table_test.cc | 80 StackHandleScope<5u> hs(soa.Self()); in TEST_F() 82 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello")); in TEST_F() 113 Handle<mirror::ShortArray> o2 = hs.NewHandle(mirror::ShortArray::Alloc(soa.Self(), 0)); in TEST_F() 186 mirror::String::AllocFromModifiedUtf8(soa.Self(), "Without"))); in TEST_F() 189 ScopedThreadSuspension sts(soa.Self(), ThreadState::kSuspended); in TEST_F() 208 h_with_trace = hs.NewHandle(soa.Self()->DecodeJObject(result)); in TEST_F() 222 h_ref = hs.NewHandle(soa.Self()->DecodeJObject(result)); in TEST_F() 256 ScopedThreadSuspension sts(soa.Self(), ThreadState::kSuspended); in TEST_F() 283 StackHandleScope<1> hs(soa.Self()); in TEST_F() 285 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello")); in TEST_F() [all …]
|
/art/runtime/mirror/ |
D | object_test.cc | 111 StackHandleScope<2> hs(soa.Self()); in TEST_F() 112 Handle<ObjectArray<Object>> a1(hs.NewHandle(AllocObjectArray<Object>(soa.Self(), 256))); in TEST_F() 114 ObjPtr<Object> clone = a1->Clone(soa.Self()); in TEST_F() 121 StackHandleScope<3> hs(soa.Self()); in TEST_F() 122 Handle<ObjectArray<Object>> oa(hs.NewHandle(AllocObjectArray<Object>(soa.Self(), 2))); in TEST_F() 134 class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/ArrayIndexOutOfBoundsException;")); in TEST_F() 137 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F() 138 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F() 139 soa.Self()->ClearException(); in TEST_F() 142 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F() [all …]
|
D | dex_cache_test.cc | 44 StackHandleScope<1> hs(soa.Self()); in TEST_F() 48 soa.Self(), in TEST_F() 67 StackHandleScope<1> hs(soa.Self()); in TEST_F() 71 soa.Self(), in TEST_F() 83 StackHandleScope<1> hs(soa.Self()); in TEST_F() 86 ObjPtr<mirror::Class> klass = class_linker_->FindClass(soa.Self(), "LMain;", class_loader); in TEST_F() 97 StackHandleScope<3> hs(soa.Self()); in TEST_F() 101 hs.NewHandle(class_linker_->FindClass(soa.Self(), "Lpackage1/Package1;", class_loader)); in TEST_F() 104 hs.NewHandle(class_linker_->FindClass(soa.Self(), "Lpackage2/Package2;", class_loader)); in TEST_F() 124 StackHandleScope<5> hs(soa.Self()); in TEST_F() [all …]
|
D | method_type_test.cc | 50 StackHandleScope<5> hs(soa.Self()); in CreateMethodType() 55 soa.Self(), FullyQualifiedType(return_type).c_str(), boot_class_loader)); in CreateMethodType() 65 soa.Self(), FullyQualifiedType(param_types[i]).c_str(), boot_class_loader)); in CreateMethodType() 76 StackHandleScope<2> hs(soa.Self()); in TEST_F() 84 StackHandleScope<2> hs(soa.Self()); in TEST_F() 92 StackHandleScope<2> hs(soa.Self()); in TEST_F() 100 StackHandleScope<2> hs(soa.Self()); in TEST_F()
|
/art/runtime/native/ |
D | java_lang_Class.cc | 172 soa.Self()->ThrowNewExceptionF("Ljava/lang/ClassNotFoundException;", in Class_classForName() 178 StackHandleScope<2> hs(soa.Self()); in Class_classForName() 183 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName() 199 class_linker->EnsureInitialized(soa.Self(), c, true, true); in Class_classForName() 212 StackHandleScope<1> hs(soa.Self()); in Class_getNameNative() 219 StackHandleScope<1> hs(soa.Self()); in Class_getInterfacesInternal() 223 return soa.AddLocalReference<jobjectArray>(klass->GetProxyInterfaces()->Clone(soa.Self())); in Class_getInterfacesInternal() 236 mirror::ObjectArray<mirror::Class>::Alloc(soa.Self(), class_array_class, num_ifaces); in Class_getInterfacesInternal() 238 DCHECK(soa.Self()->IsExceptionPending()); in Class_getInterfacesInternal() 318 GetDeclaredFields(soa.Self(), DecodeClass(soa, javaThis), publicOnly != JNI_FALSE, false)); in Class_getDeclaredFieldsUnchecked() [all …]
|
D | java_lang_reflect_Constructor.cc | 51 mirror::ObjectArray<mirror::Class>::Alloc(soa.Self(), class_array_class, 0); in Constructor_getExceptionTypes() 67 StackHandleScope<1> hs(soa.Self()); in Constructor_newInstance0() 70 soa.Self()->ThrowNewExceptionF("Ljava/lang/InstantiationException;", "Can't instantiate %s %s", in Constructor_newInstance0() 79 ObjPtr<mirror::Class> caller = GetCallingClass(soa.Self(), 2); in Constructor_newInstance0() 89 soa.Self()->ThrowNewExceptionF( in Constructor_newInstance0() 97 if (!Runtime::Current()->GetClassLinker()->EnsureInitialized(soa.Self(), c, true, true)) { in Constructor_newInstance0() 98 DCHECK(soa.Self()->IsExceptionPending()); in Constructor_newInstance0() 112 movable ? c->AllocObject(soa.Self()) : c->AllocNonMovableObject(soa.Self()); in Constructor_newInstance0() 114 DCHECK(soa.Self()->IsExceptionPending()); in Constructor_newInstance0()
|
D | java_lang_invoke_MethodHandleImpl.cc | 35 StackHandleScope<2> hs(soa.Self()); in MethodHandleImpl_getMemberInternal() 51 soa.Self(), field, /* force_resolve= */ false)); in MethodHandleImpl_getMemberInternal() 56 soa.Self(), method)); in MethodHandleImpl_getMemberInternal() 59 soa.Self(), method)); in MethodHandleImpl_getMemberInternal() 64 soa.Self()->AssertPendingOOMException(); in MethodHandleImpl_getMemberInternal()
|
D | scoped_fast_native_object_access-inl.h | 29 Locks::mutator_lock_->AssertSharedHeld(Self()); in ScopedFastNativeObjectAccess() 30 DCHECK((*Self()->GetManagedStack()->GetTopQuickFrame())->IsFastNative()); in ScopedFastNativeObjectAccess() 32 DCHECK_EQ(Self()->GetState(), kRunnable); in ScopedFastNativeObjectAccess()
|
D | java_lang_StringFactory.cc | 40 StackHandleScope<1> hs(soa.Self()); in StringFactory_newStringFromBytes() 44 soa.Self()->ThrowNewExceptionF("Ljava/lang/StringIndexOutOfBoundsException;", in StringFactory_newStringFromBytes() 50 ObjPtr<mirror::String> result = mirror::String::AllocFromByteArray<true>(soa.Self(), in StringFactory_newStringFromBytes() 64 StackHandleScope<1> hs(soa.Self()); in StringFactory_newStringFromChars() 67 ObjPtr<mirror::String> result = mirror::String::AllocFromCharArray<true>(soa.Self(), in StringFactory_newStringFromChars() 81 StackHandleScope<1> hs(soa.Self()); in StringFactory_newStringFromString() 84 ObjPtr<mirror::String> result = mirror::String::AllocFromString<true>(soa.Self(), in StringFactory_newStringFromString()
|
D | java_lang_reflect_Array.cc | 38 StackHandleScope<2> hs(soa.Self()); in Array_createMultiArray() 49 mirror::Array::CreateMultiArray(soa.Self(), element_class, dimensions_array); in Array_createMultiArray() 63 class_linker->FindArrayClass(soa.Self(), soa.Decode<mirror::Class>(javaElementClass)); in Array_createObjectArray() 65 CHECK(soa.Self()->IsExceptionPending()); in Array_createObjectArray() 70 soa.Self(), in Array_createObjectArray()
|
D | java_lang_String.cc | 57 StackHandleScope<2> hs(soa.Self()); in String_concat() 64 mirror::String::AllocFromStrings(soa.Self(), string_this, string_arg); in String_concat() 73 StackHandleScope<1> hs(soa.Self()); in String_fastSubstring() 76 ObjPtr<mirror::String> result = mirror::String::AllocFromString<true>(soa.Self(), in String_fastSubstring() 87 StackHandleScope<1> hs(soa.Self()); in String_getCharsNoCheck() 100 StackHandleScope<1> hs(soa.Self()); in String_doReplace() 102 ObjPtr<mirror::String> result = mirror::String::DoReplace(soa.Self(), string, old_c, new_c); in String_doReplace() 109 return soa.AddLocalReference<jcharArray>(s->ToCharArray(soa.Self())); in String_toCharArray()
|
D | java_lang_reflect_Field.cc | 129 soa.Self()->AssertThreadSuspensionIsAllowable(); in CheckReceiver() 133 StackHandleScope<2> hs(soa.Self()); in CheckReceiver() 137 if (UNLIKELY(!class_linker->EnsureInitialized(soa.Self(), h_klass, true, true))) { in CheckReceiver() 138 DCHECK(soa.Self()->IsExceptionPending()); in CheckReceiver() 147 DCHECK(soa.Self()->IsExceptionPending()); in CheckReceiver() 158 DCHECK(soa.Self()->IsExceptionPending()); in Field_get() 162 if (!f->IsAccessible() && !VerifyFieldAccess<false>(soa.Self(), f, o)) { in Field_get() 163 DCHECK(soa.Self()->IsExceptionPending()); in Field_get() 171 DCHECK(soa.Self()->IsExceptionPending()); in Field_get() 185 DCHECK(soa.Self()->IsExceptionPending()); in GetPrimitiveField() [all …]
|
D | java_lang_Object.cc | 31 return soa.AddLocalReference<jobject>(o->Clone(soa.Self())); in Object_internalClone() 36 soa.Decode<mirror::Object>(java_this)->Notify(soa.Self()); in Object_notify() 41 soa.Decode<mirror::Object>(java_this)->NotifyAll(soa.Self()); in Object_notifyAll() 46 soa.Decode<mirror::Object>(java_this)->Wait(soa.Self(), ms, ns); in Object_waitJI()
|
D | java_lang_Thread.cc | 36 return soa.AddLocalReference<jobject>(soa.Self()->GetPeer()); in Thread_currentThread() 45 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_isInterrupted() 75 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_nativeGetStatus() 122 Thread* thread = soa.Self(); in Thread_holdsLock() 128 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_interrupt0() 131 thread->Interrupt(soa.Self()); in Thread_interrupt0() 139 if (soa.Decode<mirror::Object>(peer) == soa.Self()->GetPeer()) { in Thread_setNativeName() 140 soa.Self()->SetThreadName(name.c_str()); in Thread_setNativeName() 174 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_setPriority0()
|
/art/runtime/gc/ |
D | heap_verification_test.cc | 54 VariableSizedHandleScope hs(soa.Self()); in TEST_F() 56 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "test"))); in TEST_F() 75 VariableSizedHandleScope hs(soa.Self()); in TEST_F() 77 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "test"))); in TEST_F() 94 VariableSizedHandleScope hs(soa.Self()); in TEST_F() 96 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "test"))); in TEST_F() 107 VariableSizedHandleScope hs(soa.Self()); in TEST_F() 125 VariableSizedHandleScope hs(soa.Self()); in TEST_F() 127 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "obj"))); in TEST_F() 129 hs.NewHandle(AllocObjectArray<mirror::Object>(soa.Self(), 256))); in TEST_F() [all …]
|
D | heap_test.cc | 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()
|
/art/benchmark/jobject-benchmark/ |
D | jobject_benchmark.cc | 55 jobject ref = soa.Vm()->AddGlobalRef(soa.Self(), obj); in Java_JObjectBenchmark_timeAddRemoveGlobal() 56 soa.Vm()->DeleteGlobalRef(soa.Self(), ref); in Java_JObjectBenchmark_timeAddRemoveGlobal() 65 jobject ref = soa.Vm()->AddGlobalRef(soa.Self(), obj); in Java_JObjectBenchmark_timeDecodeGlobal() 69 soa.Vm()->DeleteGlobalRef(soa.Self(), ref); in Java_JObjectBenchmark_timeDecodeGlobal() 78 jobject ref = soa.Vm()->AddWeakGlobalRef(soa.Self(), obj); in Java_JObjectBenchmark_timeAddRemoveWeakGlobal() 79 soa.Vm()->DeleteWeakGlobalRef(soa.Self(), ref); in Java_JObjectBenchmark_timeAddRemoveWeakGlobal() 88 jobject ref = soa.Vm()->AddWeakGlobalRef(soa.Self(), obj); in Java_JObjectBenchmark_timeDecodeWeakGlobal() 92 soa.Vm()->DeleteWeakGlobalRef(soa.Self(), ref); in Java_JObjectBenchmark_timeDecodeWeakGlobal()
|