Home
last modified time | relevance | path

Searched refs:Self (Results 1 – 25 of 133) sorted by relevance

123456

/art/runtime/
Dmethod_handles_test.cc83 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 …]
Dtransaction_test.cc41 StackHandleScope<2> hs(soa.Self()); in testTransactionAbort()
50 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), in testTransactionAbort()
53 class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort()
56 h_klass.Assign(class_linker_->FindSystemClass(soa.Self(), in testTransactionAbort()
59 class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort()
63 h_klass.Assign(class_linker_->FindClass(soa.Self(), "LTransaction$AbortHelperClass;", in testTransactionAbort()
66 class_linker_->VerifyClass(soa.Self(), h_klass); in testTransactionAbort()
70 h_klass.Assign(class_linker_->FindClass(soa.Self(), tested_class_signature, class_loader)); in testTransactionAbort()
72 class_linker_->VerifyClass(soa.Self(), h_klass); in testTransactionAbort()
79 bool success = class_linker_->EnsureInitialized(soa.Self(), h_klass, true, true); in testTransactionAbort()
[all …]
Dintern_table_test.cc35 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 …]
Dscoped_thread_state_change-inl.h77 Locks::mutator_lock_->AssertSharedHeld(Self()); in AddLocalReference()
87 Locks::mutator_lock_->AssertSharedHeld(Self()); in Decode()
89 return ObjPtr<T>::DownCast(Self()->DecodeJObject(obj)); in Decode()
105 : ScopedObjectAccessAlreadyRunnable(env), tsc_(Self(), kRunnable) { in ScopedObjectAccessUnchecked()
106 Self()->VerifyStack(); in ScopedObjectAccessUnchecked()
107 Locks::mutator_lock_->AssertSharedHeld(Self()); in ScopedObjectAccessUnchecked()
112 Self()->VerifyStack(); in ScopedObjectAccessUnchecked()
113 Locks::mutator_lock_->AssertSharedHeld(Self()); in ScopedObjectAccessUnchecked()
Dproxy_test.h42 StackHandleScope<1> hs(soa.Self()); in GenerateProxyClass()
51 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
66 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
79 mirror::Method::CreateFromArtMethod<kRuntimePointerSize>(soa.Self(), method))); in GenerateProxyClass()
86 mirror::Method::CreateFromArtMethod<kRuntimePointerSize>(soa.Self(), method))); in GenerateProxyClass()
94 mirror::Method::CreateFromArtMethod<kRuntimePointerSize>(soa.Self(), method))); in GenerateProxyClass()
100 mirror::Method::CreateFromArtMethod<kRuntimePointerSize>(soa.Self(), &m))); in GenerateProxyClass()
107 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
116 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
Dproxy_test.cc49 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 …]
Dhandle_scope_test.cc51 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()
Dclass_linker_test.cc893 StackHandleScope<1> hs(soa.Self()); in TEST_F()
897 ObjPtr<mirror::Class> outer = class_linker_->FindClass(soa.Self(), "LNested;", class_loader); in TEST_F()
903 class_linker_->FindClass(soa.Self(), "LNested$Inner;", class_loader); in TEST_F()
925 StackHandleScope<2> hs(soa.Self()); in TEST_F()
927 class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;")); in TEST_F()
933 ObjPtr<mirror::Class> MyClass = class_linker_->FindClass(soa.Self(), "LMyClass;", class_loader); in TEST_F()
978 StackHandleScope<1> hs(soa.Self()); in TEST_F()
982 ObjPtr<mirror::Class> klass = class_linker_->FindClass(soa.Self(), "LMyClass;", class_loader); in TEST_F()
998 StackHandleScope<2> hs(soa.Self()); in TEST_F()
1003 = class_linker_->FindClass(soa.Self(), "LAllFields;", class_loader); in TEST_F()
[all …]
Dreference_table_test.cc80 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/
Dobject_test.cc111 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 = Object::Clone(a1, 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 …]
Ddex_cache_test.cc44 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 …]
Dmethod_type_test.cc50 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/test/1985-structural-redefine-stack-scope/
Dstack_scope.cc49 StackHandleScope<4> hs(soa.Self()); in Java_Main_NativeFieldScopeCheck()
50 StackArtFieldHandleScope<1> fhs(soa.Self()); in Java_Main_NativeFieldScopeCheck()
51 StackArtFieldHandleScope<1> bhs(soa.Self()); in Java_Main_NativeFieldScopeCheck()
56 ScopedThreadSuspension sts(soa.Self(), ThreadState::kNative); in Java_Main_NativeFieldScopeCheck()
62 soa.Self(), in Java_Main_NativeFieldScopeCheck()
63 Runtime::Current()->GetClassLinker()->FindArrayClass(soa.Self(), in Java_Main_NativeFieldScopeCheck()
67 soa.Self(), hs.NewHandle(GetClassRoot<mirror::Object>()), mt_arr))); in Java_Main_NativeFieldScopeCheck()
69 mirror::MethodHandleImpl::Create(soa.Self(), in Java_Main_NativeFieldScopeCheck()
/art/runtime/native/
Djava_lang_reflect_Constructor.cc51 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()
Djava_lang_Class.cc189 soa.Self()->ThrowNewExceptionF("Ljava/lang/ClassNotFoundException;", in Class_classForName()
195 StackHandleScope<2> hs(soa.Self()); in Class_classForName()
200 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName()
216 class_linker->EnsureInitialized(soa.Self(), c, true, true); in Class_classForName()
229 StackHandleScope<1> hs(soa.Self()); in Class_getNameNative()
236 StackHandleScope<1> hs(soa.Self()); in Class_getInterfacesInternal()
244 StackHandleScope<1> hs2(soa.Self()); in Class_getInterfacesInternal()
248 mirror::ObjectArray<mirror::Class>::Clone(interfaces, soa.Self())); in Class_getInterfacesInternal()
261 mirror::ObjectArray<mirror::Class>::Alloc(soa.Self(), class_array_class, num_ifaces); in Class_getInterfacesInternal()
263 DCHECK(soa.Self()->IsExceptionPending()); in Class_getInterfacesInternal()
[all …]
Djava_lang_invoke_MethodHandleImpl.cc35 StackHandleScope<2> hs(soa.Self()); in MethodHandleImpl_getMemberInternal()
47 mirror::Field::CreateFromArtField(soa.Self(), field, /* force_resolve= */ false)); in MethodHandleImpl_getMemberInternal()
52 mirror::Constructor::CreateFromArtMethod<kRuntimePointerSize>(soa.Self(), method)); in MethodHandleImpl_getMemberInternal()
54 h_object.Assign(mirror::Method::CreateFromArtMethod<kRuntimePointerSize>(soa.Self(), method)); in MethodHandleImpl_getMemberInternal()
59 soa.Self()->AssertPendingOOMException(); in MethodHandleImpl_getMemberInternal()
Dscoped_fast_native_object_access-inl.h29 Locks::mutator_lock_->AssertSharedHeld(Self()); in ScopedFastNativeObjectAccess()
30 DCHECK((*Self()->GetManagedStack()->GetTopQuickFrame())->IsFastNative()); in ScopedFastNativeObjectAccess()
32 DCHECK_EQ(Self()->GetState(), kRunnable); in ScopedFastNativeObjectAccess()
Djava_lang_StringFactory.cc40 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(soa.Self(), in StringFactory_newStringFromBytes()
64 StackHandleScope<1> hs(soa.Self()); in StringFactory_newStringFromChars()
67 ObjPtr<mirror::String> result = mirror::String::AllocFromCharArray(soa.Self(), in StringFactory_newStringFromChars()
81 StackHandleScope<1> hs(soa.Self()); in StringFactory_newStringFromString()
84 ObjPtr<mirror::String> result = mirror::String::AllocFromString(soa.Self(), in StringFactory_newStringFromString()
Djava_lang_Object.cc31 StackHandleScope<1u> hs(soa.Self()); in Object_internalClone()
33 return soa.AddLocalReference<jobject>(mirror::Class::Clone(o, soa.Self())); in Object_internalClone()
38 soa.Decode<mirror::Object>(java_this)->Notify(soa.Self()); in Object_notify()
43 soa.Decode<mirror::Object>(java_this)->NotifyAll(soa.Self()); in Object_notifyAll()
48 soa.Decode<mirror::Object>(java_this)->Wait(soa.Self(), ms, ns); in Object_waitJI()
Djava_lang_String.cc57 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(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()
108 StackHandleScope<1u> hs(soa.Self()); in String_toCharArray()
110 return soa.AddLocalReference<jcharArray>(mirror::String::ToCharArray(s, soa.Self())); in String_toCharArray()
Djava_lang_reflect_Array.cc38 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()
Djava_lang_Thread.cc36 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()
117 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_getNativeTid()
129 Thread* thread = soa.Self(); in Thread_holdsLock()
135 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_interrupt0()
138 thread->Interrupt(soa.Self()); in Thread_interrupt0()
146 if (soa.Decode<mirror::Object>(peer) == soa.Self()->GetPeer()) { in Thread_setNativeName()
147 soa.Self()->SetThreadName(name.c_str()); in Thread_setNativeName()
181 MutexLock mu(soa.Self(), *Locks::thread_list_lock_); in Thread_setPriority0()
/art/runtime/gc/
Dheap_verification_test.cc54 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 …]
Dheap_test.cc69 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/
Djobject_benchmark.cc55 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()

123456