Lines Matching refs:self
35 kind(self->GetJniEnv()); \
41 extern "C" int artMethodExitHook(Thread* self,
67 extern "C" void artJniMethodStart(Thread* self) { in artJniMethodStart() argument
69 ArtMethod* native_method = *self->GetManagedStack()->GetTopQuickFrame(); in artJniMethodStart()
75 self->TransitionFromRunnableToSuspended(ThreadState::kNative); in artJniMethodStart()
78 static void PopLocalReferences(uint32_t saved_local_ref_cookie, Thread* self) in PopLocalReferences() argument
80 JNIEnvExt* env = self->GetJniEnv(); in PopLocalReferences()
90 artJniUnlockObject(mirror::Object* locked, Thread* self) NO_THREAD_SAFETY_ANALYSIS in artJniUnlockObject() argument
94 uintptr_t old_poison_object_cookie = kIsDebugBuild ? self->GetPoisonObjectCookie() : 0u; in artJniUnlockObject()
97 if (UNLIKELY(self->IsExceptionPending())) { in artJniUnlockObject()
98 saved_exception = self->GetException(); in artJniUnlockObject()
99 self->ClearException(); in artJniUnlockObject()
102 locked->MonitorExit(self); in artJniUnlockObject()
103 if (UNLIKELY(self->IsExceptionPending())) { in artJniUnlockObject()
105 << self->GetException()->Dump() in artJniUnlockObject()
113 self->SetException(saved_exception); in artJniUnlockObject()
116 DCHECK_EQ(old_poison_object_cookie, self->GetPoisonObjectCookie()); in artJniUnlockObject()
123 extern "C" void artJniMethodEnd(Thread* self) { in artJniMethodEnd() argument
124 self->TransitionFromSuspendedToRunnable(); in artJniMethodEnd()
127 ArtMethod* native_method = *self->GetManagedStack()->GetTopQuickFrame(); in artJniMethodEnd()
133 extern mirror::Object* JniDecodeReferenceResult(jobject result, Thread* self) in JniDecodeReferenceResult() argument
135 DCHECK(!self->IsExceptionPending()); in JniDecodeReferenceResult()
136 ObjPtr<mirror::Object> o = self->DecodeJObject(result); in JniDecodeReferenceResult()
138 if (UNLIKELY(self->GetJniEnv()->IsCheckJniEnabled())) { in JniDecodeReferenceResult()
140 StackHandleScope<1> hs(self); in JniDecodeReferenceResult()
142 CheckReferenceResult(h_obj, self); in JniDecodeReferenceResult()
148 extern uint64_t GenericJniMethodEnd(Thread* self, in GenericJniMethodEnd() argument
163 if (UNLIKELY(self->ReadFlag(ThreadFlag::kMonitorJniEntryExit))) { in GenericJniMethodEnd()
164 artJniMonitoredMethodEnd(self); in GenericJniMethodEnd()
166 artJniMethodEnd(self); in GenericJniMethodEnd()
170 DCHECK(Locks::mutator_lock_->IsSharedHeld(self)); in GenericJniMethodEnd()
172 self->CheckSuspend(); in GenericJniMethodEnd()
178 ObjPtr<mirror::Object> lock = GetGenericJniSynchronizationObject(self, called); in GenericJniMethodEnd()
180 artJniUnlockObject(lock.Ptr(), self); in GenericJniMethodEnd()
186 UNLIKELY(self->IsExceptionPending()) ? nullptr : JniDecodeReferenceResult(result.l, self)); in GenericJniMethodEnd()
187 PopLocalReferences(saved_local_ref_cookie, self); in GenericJniMethodEnd()
190 PopLocalReferences(saved_local_ref_cookie, self); in GenericJniMethodEnd()
236 extern "C" void artJniMonitoredMethodStart(Thread* self) { in artJniMonitoredMethodStart() argument
237 artJniMethodStart(self); in artJniMonitoredMethodStart()
241 extern "C" void artJniMonitoredMethodEnd(Thread* self) { in artJniMonitoredMethodEnd() argument
243 artJniMethodEnd(self); in artJniMonitoredMethodEnd()