Lines Matching refs:self

273                              art::Thread* self,  in RunEventCallback()  argument
277 ScopedLocalRef<jthread> thread_jni(jnienv, AddLocalRef<jthread>(jnienv, self->GetPeer())); in RunEventCallback()
278 handler->DispatchEvent<kEvent>(self, in RunEventCallback()
300 art::Thread* self = art::Thread::Current(); in DdmPublishChunk() local
302 self, in DdmPublishChunk()
319 void ObjectAllocated(art::Thread* self, art::ObjPtr<art::mirror::Object>* obj, size_t byte_count) in ObjectAllocated() argument
321 DCHECK_EQ(self, art::Thread::Current()); in ObjectAllocated()
324 art::StackHandleScope<1> hs(self); in ObjectAllocated()
333 art::JNIEnvExt* jni_env = self->GetJniEnv(); in ObjectAllocated()
340 self, in ObjectAllocated()
370 art::Thread* self = art::Thread::Current(); in MonitorContendedLocking() local
371 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MonitorContendedLocking()
375 self, in MonitorContendedLocking()
384 art::Thread* self = art::Thread::Current(); in MonitorContendedLocked() local
385 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MonitorContendedLocked()
389 self, in MonitorContendedLocked()
398 art::Thread* self = art::Thread::Current(); in ObjectWaitStart() local
399 art::JNIEnvExt* jnienv = self->GetJniEnv(); in ObjectWaitStart()
403 self, in ObjectWaitStart()
425 art::Thread* self = art::Thread::Current(); in MonitorWaitFinished() local
426 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MonitorWaitFinished()
430 self, in MonitorWaitFinished()
448 art::Thread* self = art::Thread::Current(); in ThreadParkStart() local
449 art::JNIEnvExt* jnienv = self->GetJniEnv(); in ThreadParkStart()
452 art::ObjPtr<art::mirror::Object> blocker_obj = parkBlockerField->GetObj(self->GetPeer()); in ThreadParkStart()
454 blocker_obj = self->GetPeer(); in ThreadParkStart()
485 self, in ThreadParkStart()
506 art::Thread* self = art::Thread::Current(); in ThreadParkFinished() local
507 art::JNIEnvExt* jnienv = self->GetJniEnv(); in ThreadParkFinished()
510 art::ObjPtr<art::mirror::Object> blocker_obj = parkBlockerField->GetObj(self->GetPeer()); in ThreadParkFinished()
512 blocker_obj = self->GetPeer(); in ThreadParkFinished()
517 self, in ThreadParkFinished()
605 art::Thread* self = art::Thread::Current(); in AddDelayedNonStandardExitEvent() local
607 jobject new_val = is_object ? self->GetJniEnv()->NewGlobalRef(val.l) : nullptr; in AddDelayedNonStandardExitEvent()
609 art::MutexLock mu(self, non_standard_exits_lock_); in AddDelayedNonStandardExitEvent()
623 self->GetJniEnv()->DeleteGlobalRef(to_cleanup); in AddDelayedNonStandardExitEvent()
627 void MethodEntered(art::Thread* self, in MethodEntered() argument
634 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MethodEntered()
636 self, in MethodEntered()
644 void MethodExited(art::Thread* self, in MethodExited() argument
660 art::MutexLock mu(self, non_standard_exits_lock_); in MethodExited()
670 return_value.Assign(self->DecodeJObject(ret_val)); in MethodExited()
671 ScopedLocalRef<jthread> thr(self->GetJniEnv(), in MethodExited()
672 self->GetJniEnv()->NewLocalRef(self->GetPeer())); in MethodExited()
673 art::ScopedThreadSuspension sts(self, art::ThreadState::kNative); in MethodExited()
674 self->GetJniEnv()->DeleteGlobalRef(ret_val); in MethodExited()
683 DCHECK(!self->IsExceptionPending()); in MethodExited()
685 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MethodExited()
690 self, in MethodExited()
699 void MethodExited(art::Thread* self, in MethodExited() argument
711 art::MutexLock mu(self, non_standard_exits_lock_); in MethodExited()
721 ScopedLocalRef<jthread> thr(self->GetJniEnv(), in MethodExited()
722 self->GetJniEnv()->NewLocalRef(self->GetPeer())); in MethodExited()
723 art::ScopedThreadSuspension sts(self, art::ThreadState::kNative); in MethodExited()
732 DCHECK(!self->IsExceptionPending()) << self->GetException()->Dump(); in MethodExited()
734 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MethodExited()
740 self, in MethodExited()
750 void MethodUnwind(art::Thread* self, in MethodUnwind() argument
760 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MethodUnwind()
761 art::StackHandleScope<1> hs(self); in MethodUnwind()
762 art::Handle<art::mirror::Throwable> old_exception(hs.NewHandle(self->GetException())); in MethodUnwind()
764 self->ClearException(); in MethodUnwind()
767 self, in MethodUnwind()
773 if (LIKELY(!self->IsExceptionPending())) { in MethodUnwind()
774 self->SetException(old_exception.Get()); in MethodUnwind()
780 void DexPcMoved(art::Thread* self, in DexPcMoved() argument
792 art::JNIEnvExt* jnienv = self->GetJniEnv(); in DexPcMoved()
797 RunEventCallback<ArtJvmtiEvent::kSingleStep>(event_handler_, self, jnienv, jmethod, location); in DexPcMoved()
801 RunEventCallback<ArtJvmtiEvent::kBreakpoint>(event_handler_, self, jnienv, jmethod, location); in DexPcMoved()
806 void FieldRead(art::Thread* self, in FieldRead() argument
813 art::StackReflectiveHandleScope<1, 1> rhs(self); in FieldRead()
816 art::JNIEnvExt* jnienv = self->GetJniEnv(); in FieldRead()
823 self, in FieldRead()
833 void FieldWritten(art::Thread* self, in FieldWritten() argument
841 art::JNIEnvExt* jnienv = self->GetJniEnv(); in FieldWritten()
842 art::StackReflectiveHandleScope<1, 1> rhs(self); in FieldWritten()
855 self, in FieldWritten()
868 void FieldWritten(art::Thread* self, in FieldWritten() argument
876 art::JNIEnvExt* jnienv = self->GetJniEnv(); in FieldWritten()
877 art::StackReflectiveHandleScope<1, 1> rhs(self); in FieldWritten()
880 DCHECK(!self->IsExceptionPending()); in FieldWritten()
892 self, in FieldWritten()
906 void WatchedFramePop(art::Thread* self, const art::ShadowFrame& frame) in WatchedFramePop() argument
908 art::JNIEnvExt* jnienv = self->GetJniEnv(); in WatchedFramePop()
911 art::MutexLock mu(self, *art::Locks::thread_list_lock_); in WatchedFramePop()
912 CHECK_GT(self->ForceInterpreterCount(), 0u); in WatchedFramePop()
913 self->DecrementForceInterpreterCount(); in WatchedFramePop()
915 jboolean is_exception_pending = self->IsExceptionPending(); in WatchedFramePop()
918 self, in WatchedFramePop()
925 static void FindCatchMethodsFromThrow(art::Thread* self, in FindCatchMethodsFromThrow() argument
980 art::StackHandleScope<1> hs(self); in FindCatchMethodsFromThrow()
985 CatchLocationFinder clf(self, in FindCatchMethodsFromThrow()
994 void ExceptionThrown(art::Thread* self, art::Handle<art::mirror::Throwable> exception_object) in ExceptionThrown() argument
996 DCHECK(self->IsExceptionThrownByCurrentMethod(exception_object.Get())); in ExceptionThrown()
998 DCHECK(!self->IsExceptionPending()); in ExceptionThrown()
1000 art::JNIEnvExt* jnienv = self->GetJniEnv(); in ExceptionThrown()
1003 FindCatchMethodsFromThrow(self, exception_object, &catch_method, &catch_pc); in ExceptionThrown()
1005 art::ArtMethod* method = self->GetCurrentMethod(&dex_pc, in ExceptionThrown()
1012 self, in ExceptionThrown()
1024 void ExceptionHandled(art::Thread* self, art::Handle<art::mirror::Throwable> exception_object) in ExceptionHandled() argument
1027 DCHECK(!self->IsExceptionPending()); in ExceptionHandled()
1029 art::JNIEnvExt* jnienv = self->GetJniEnv(); in ExceptionHandled()
1031 art::ArtMethod* method = self->GetCurrentMethod(&dex_pc, in ExceptionHandled()
1038 self, in ExceptionHandled()
1048 void Branch(art::Thread* self ATTRIBUTE_UNUSED, in Branch()
1437 art::Thread* self = art::Thread::Current(); in SetInternalEvent() local
1439 ScopedNoUserCodeSuspension snucs(self); in SetInternalEvent()
1453 art::ScopedObjectAccess soa(self); in SetInternalEvent()
1454 art::WriterMutexLock el_mu(self, envs_lock_); in SetInternalEvent()
1455 art::MutexLock tll_mu(self, *art::Locks::thread_list_lock_); in SetInternalEvent()
1531 art::Thread* self = art::Thread::Current(); in SetEvent() local
1533 ScopedNoUserCodeSuspension snucs(self); in SetEvent()
1547 art::ScopedObjectAccess soa(self); in SetEvent()
1548 art::WriterMutexLock el_mu(self, envs_lock_); in SetEvent()
1549 art::MutexLock tll_mu(self, *art::Locks::thread_list_lock_); in SetEvent()
1562 art::WriterMutexLock ei_mu(self, env->event_info_mutex_); in SetEvent()
1660 art::Thread* self = art::Thread::Current(); in Shutdown() local
1661 art::gc::ScopedGCCriticalSection gcs(self, in Shutdown()