Searched refs:Self (Results 1 - 25 of 61) sorted by relevance

123

/art/runtime/native/
H A Dscoped_fast_native_object_access.h33 Locks::mutator_lock_->AssertSharedHeld(Self());
34 DCHECK(Self()->GetManagedStack()->GetTopQuickFrame()->AsMirrorPtr()->IsFastNative());
36 DCHECK_EQ(Self()->GetState(), kRunnable);
H A Djava_lang_reflect_Constructor.cc40 StackHandleScope<1> hs(soa.Self());
43 ThrowLocation throw_location = soa.Self()->GetCurrentLocationForThrow();
44 soa.Self()->ThrowNewExceptionF(throw_location, "Ljava/lang/InstantiationException;",
52 DCHECK(soa.Self()->IsExceptionPending());
65 movable ? c->AllocObject(soa.Self()) : c->AllocNonMovableObject(soa.Self());
H A Ddalvik_system_VMStack.cc32 if (soa.Decode<mirror::Object*>(peer) == soa.Self()->GetPeer()) {
33 trace = soa.Self()->CreateInternalStackTrace<false>(soa);
36 soa.Self()->TransitionFromRunnableToSuspended(kNative);
42 MutexLock mu(soa.Self(), *Locks::thread_list_suspend_thread_lock_);
47 CHECK_EQ(soa.Self()->TransitionFromSuspendedToRunnable(), kNative);
49 soa.Self()->TransitionFromRunnableToSuspended(kNative);
58 CHECK_EQ(soa.Self()->TransitionFromSuspendedToRunnable(), kNative);
78 NthCallerVisitor visitor(soa.Self(), 2);
111 ClosestUserClassLoaderVisitor visitor(soa.Self(), bootstrap, system);
119 NthCallerVisitor visitor(soa.Self(),
[all...]
H A Djava_lang_Object.cc31 return soa.AddLocalReference<jobject>(o->Clone(soa.Self()));
37 o->Notify(soa.Self());
43 o->NotifyAll(soa.Self());
49 o->Wait(soa.Self());
55 o->Wait(soa.Self(), ms, ns);
H A Djava_lang_reflect_Array.cc31 StackHandleScope<2> hs(soa.Self());
41 mirror::Array* new_array = mirror::Array::CreateMultiArray(soa.Self(), element_class,
56 mirror::Class* array_class = class_linker->FindArrayClass(soa.Self(), &element_class);
58 CHECK(soa.Self()->IsExceptionPending());
62 mirror::Array* new_array = mirror::Array::Alloc<true>(soa.Self(), array_class, length,
H A Djava_lang_Class.cc56 ThrowLocation throw_location = soa.Self()->GetCurrentLocationForThrow();
57 soa.Self()->ThrowNewExceptionF(throw_location, "Ljava/lang/ClassNotFoundException;",
63 StackHandleScope<2> hs(soa.Self());
67 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader)));
88 StackHandleScope<1> hs(soa.Self());
96 return soa.AddLocalReference<jobjectArray>(c->GetInterfaces()->Clone(soa.Self()));
H A Djava_lang_DexCache.cc29 DCHECK_EQ(dex_cache->GetLockOwnerThreadId(), soa.Self()->GetThreadId());
37 DCHECK(soa.Self()->IsExceptionPending());
H A Djava_lang_Thread.cc33 return soa.AddLocalReference<jobject>(soa.Self()->GetPeer());
42 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
63 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
103 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
110 MutexLock mu(soa.Self(), *Locks::thread_list_lock_);
113 thread->Interrupt(soa.Self());
122 if (soa.Decode<mirror::Object*>(peer) == soa.Self()->GetPeer()) {
123 soa.Self()->SetThreadName(name.c_str());
126 self = soa.Self();
158 MutexLock mu(soa.Self(), *Lock
[all...]
H A Djava_lang_Throwable.cc25 return soa.Self()->CreateInternalStackTrace<false>(soa);
H A Djava_lang_ref_Reference.cc30 Runtime::Current()->GetHeap()->GetReferenceProcessor()->GetReferent(soa.Self(), ref);
H A Djava_lang_reflect_Field.cc99 soa.Self()->AssertThreadSuspensionIsAllowable();
104 StackHandleScope<2> hs(soa.Self());
108 DCHECK(soa.Self()->IsExceptionPending());
117 DCHECK(soa.Self()->IsExceptionPending());
128 DCHECK(soa.Self()->IsExceptionPending());
132 if ((accessible == JNI_FALSE) && !VerifyFieldAccess<false>(soa.Self(), f, o)) {
133 DCHECK(soa.Self()->IsExceptionPending());
141 DCHECK(soa.Self()->IsExceptionPending());
154 DCHECK(soa.Self()->IsExceptionPending());
159 if (accessible == JNI_FALSE && !VerifyFieldAccess<false>(soa.Self(),
[all...]
H A Djava_lang_VMClassLoader.cc43 StackHandleScope<1> hs(soa.Self());
44 c = cl->FindClassInPathClassLoader(soa, soa.Self(), descriptor.c_str(), descriptor_hash,
/art/runtime/mirror/
H A Dobject_test.cc118 StackHandleScope<2> hs(soa.Self());
120 hs.NewHandle(class_linker_->AllocObjectArray<Object>(soa.Self(), 256)));
122 Object* clone = a1->Clone(soa.Self());
129 StackHandleScope<2> hs(soa.Self());
131 hs.NewHandle(class_linker_->AllocObjectArray<Object>(soa.Self(), 2)));
142 Class* aioobe = class_linker_->FindSystemClass(soa.Self(),
146 EXPECT_TRUE(soa.Self()->IsExceptionPending());
147 EXPECT_EQ(aioobe, soa.Self()->GetException(NULL)->GetClass());
148 soa.Self()->ClearException();
151 EXPECT_TRUE(soa.Self()
[all...]
H A Ddex_cache_test.cc36 StackHandleScope<1> hs(soa.Self());
38 hs.NewHandle(class_linker_->AllocDexCache(soa.Self(), *java_lang_dex_file_)));
/art/runtime/
H A Dintern_table_test.cc32 StackHandleScope<4> hs(soa.Self());
36 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo")));
54 StackHandleScope<1> hs(soa.Self());
56 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo")));
102 StackHandleScope<5> hs(soa.Self());
104 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello")));
106 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "world")));
117 ReaderMutexLock mu(soa.Self(), *Locks::heap_bitmap_lock_);
125 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "still here")));
135 StackHandleScope<2> hs(soa.Self());
[all...]
H A Dscoped_thread_state_change.h81 Thread* Self() const { function in class:art::ScopedThreadStateChange
105 Thread* Self() const { function in class:art::ScopedObjectAccessAlreadyRunnable
128 Locks::mutator_lock_->AssertSharedHeld(Self());
140 Locks::mutator_lock_->AssertSharedHeld(Self());
142 return down_cast<T>(Self()->DecodeJObject(obj));
147 Locks::mutator_lock_->AssertSharedHeld(Self());
156 Locks::mutator_lock_->AssertSharedHeld(Self());
164 Locks::mutator_lock_->AssertSharedHeld(Self());
173 Locks::mutator_lock_->AssertSharedHeld(Self());
204 // Self threa
[all...]
H A Dproxy_test.cc36 mirror::Class* javaLangObject = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;");
44 soa.Self()->AssertNoPendingException();
60 soa.Self()->AssertNoPendingException();
97 soa.Self()->AssertNoPendingException();
103 soa.Self()->AssertNoPendingException();
112 StackHandleScope<4> hs(soa.Self());
117 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader)));
119 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader)));
134 EXPECT_EQ(I.Get(), mirror::Class::GetDirectInterface(soa.Self(), proxy_class, 0));
135 EXPECT_EQ(J.Get(), mirror::Class::GetDirectInterface(soa.Self(), proxy_clas
[all...]
H A Dtransaction_test.cc31 StackHandleScope<2> hs(soa.Self());
33 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;")));
38 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self())));
50 StackHandleScope<2> hs(soa.Self());
52 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;")));
54 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self())));
59 h_obj->MonitorEnter(soa.Self());
65 h_obj->MonitorExit(soa.Self());
78 StackHandleScope<2> hs(soa.Self());
80 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljav
[all...]
H A Dclass_linker_test.cc626 StackHandleScope<1> hs(soa.Self());
630 mirror::Class* outer = class_linker_->FindClass(soa.Self(), "LNested;", class_loader);
635 mirror::Class* inner = class_linker_->FindClass(soa.Self(), "LNested$Inner;", class_loader);
657 mirror::Class* JavaLangObject = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;");
698 StackHandleScope<1> hs(soa.Self());
702 mirror::Class* MyClass = class_linker_->FindClass(soa.Self(), "LMyClass;", class_loader);
752 mirror::Class* array_class = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/String;");
754 mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), array_class, 0);
767 StackHandleScope<5> hs(soa.Self());
768 Handle<mirror::LongArray> long_array(hs.NewHandle(mirror::LongArray::Alloc(soa.Self(),
[all...]
H A Dutils_test.cc110 StackHandleScope<2> hs(soa.Self());
111 Handle<mirror::String> s(hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "")));
114 Handle<mirror::ShortArray> a(hs.NewHandle(mirror::ShortArray::Alloc(soa.Self(), 2)));
117 mirror::Class* c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/String;");
119 mirror::Object* o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0);
127 mirror::Class* c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/String;");
129 mirror::Object* o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0);
136 mirror::Class* c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/String;");
138 mirror::Object* o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0);
146 mirror::Class* java_lang_String = class_linker_->FindSystemClass(soa.Self(),
[all...]
H A Dsafe_map.h34 typedef SafeMap<K, V, Comparator, Allocator> Self; typedef in class:art::SafeMap
51 Self& operator=(const Self& rhs) {
68 void swap(Self& other) { map_.swap(other.map_); }
114 bool Equals(const Self& rhs) const {
H A Dreference_table_test.cc31 mirror::Object* o1 = mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello");
62 mirror::Object* o2 = mirror::ShortArray::Alloc(soa.Self(), 0);
/art/runtime/gc/
H A Dheap_test.cc47 StackHandleScope<1> hs(soa.Self());
49 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;")));
51 StackHandleScope<1> hs(soa.Self());
53 mirror::ObjectArray<mirror::Object>::Alloc(soa.Self(), c.Get(), 2048)));
55 mirror::String* string = mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello, world!");
/art/test/004-StackWalk/
H A Dstack_walk_jni.cc109 TestReferenceMapVisitor mapper(soa.Self());
120 TestReferenceMapVisitor mapper(soa.Self());
/art/runtime/entrypoints/
H A Dentrypoint_utils.cc171 stack_state_val.reset(soa.Self()->CreateInternalStackTrace<false>(soa));
240 soa.Self()->AssertThreadSuspensionIsAllowable();
248 CHECK(soa.Self()->IsExceptionPending());
260 CHECK(soa.Self()->IsExceptionPending());
279 if (LIKELY(!soa.Self()->IsExceptionPending())) {
284 StackHandleScope<1> hs(soa.Self());
303 DCHECK(soa.Self()->IsExceptionPending());
311 mirror::Throwable* exception = soa.Self()->GetException(NULL);
338 soa.Self()->ThrowNewWrappedException(throw_location,

Completed in 350 milliseconds

123