Lines Matching refs:self
31 extern uint32_t JniMethodStart(Thread* self) { in JniMethodStart() argument
32 JNIEnvExt* env = self->GetJniEnv(); in JniMethodStart()
36 mirror::ArtMethod* native_method = self->GetManagedStack()->GetTopQuickFrame()->AsMirrorPtr(); in JniMethodStart()
39 self->TransitionFromRunnableToSuspended(kNative); in JniMethodStart()
44 extern uint32_t JniMethodStartSynchronized(jobject to_lock, Thread* self) { in JniMethodStartSynchronized() argument
45 self->DecodeJObject(to_lock)->MonitorEnter(self); in JniMethodStartSynchronized()
46 return JniMethodStart(self); in JniMethodStartSynchronized()
50 static void GoToRunnable(Thread* self) NO_THREAD_SAFETY_ANALYSIS { in GoToRunnable() argument
51 mirror::ArtMethod* native_method = self->GetManagedStack()->GetTopQuickFrame()->AsMirrorPtr(); in GoToRunnable()
54 self->TransitionFromSuspendedToRunnable(); in GoToRunnable()
55 } else if (UNLIKELY(self->TestAllFlags())) { in GoToRunnable()
58 DCHECK(Locks::mutator_lock_->IsSharedHeld(self)); in GoToRunnable()
59 CheckSuspend(self); in GoToRunnable()
63 static void PopLocalReferences(uint32_t saved_local_ref_cookie, Thread* self) in PopLocalReferences() argument
65 JNIEnvExt* env = self->GetJniEnv(); in PopLocalReferences()
68 self->PopHandleScope(); in PopLocalReferences()
71 extern void JniMethodEnd(uint32_t saved_local_ref_cookie, Thread* self) { in JniMethodEnd() argument
72 GoToRunnable(self); in JniMethodEnd()
73 PopLocalReferences(saved_local_ref_cookie, self); in JniMethodEnd()
78 Thread* self) { in JniMethodEndSynchronized() argument
79 GoToRunnable(self); in JniMethodEndSynchronized()
80 UnlockJniSynchronizedMethod(locked, self); // Must decode before pop. in JniMethodEndSynchronized()
81 PopLocalReferences(saved_local_ref_cookie, self); in JniMethodEndSynchronized()
85 Thread* self) { in JniMethodEndWithReference() argument
86 GoToRunnable(self); in JniMethodEndWithReference()
87 mirror::Object* o = self->DecodeJObject(result); // Must decode before pop. in JniMethodEndWithReference()
88 PopLocalReferences(saved_local_ref_cookie, self); in JniMethodEndWithReference()
90 if (UNLIKELY(self->GetJniEnv()->check_jni)) { in JniMethodEndWithReference()
91 if (self->IsExceptionPending()) { in JniMethodEndWithReference()
94 CheckReferenceResult(o, self); in JniMethodEndWithReference()
102 jobject locked, Thread* self) { in JniMethodEndWithReferenceSynchronized() argument
103 GoToRunnable(self); in JniMethodEndWithReferenceSynchronized()
104 UnlockJniSynchronizedMethod(locked, self); // Must decode before pop. in JniMethodEndWithReferenceSynchronized()
105 mirror::Object* o = self->DecodeJObject(result); in JniMethodEndWithReferenceSynchronized()
106 PopLocalReferences(saved_local_ref_cookie, self); in JniMethodEndWithReferenceSynchronized()
108 if (UNLIKELY(self->GetJniEnv()->check_jni)) { in JniMethodEndWithReferenceSynchronized()
109 if (self->IsExceptionPending()) { in JniMethodEndWithReferenceSynchronized()
112 CheckReferenceResult(o, self); in JniMethodEndWithReferenceSynchronized()