Home
last modified time | relevance | path

Searched refs:GetJniEnv (Results 1 – 25 of 54) sorted by relevance

123

/art/openjdkjvmti/
Dti_phase.cc50 inline static JNIEnv* GetJniEnv() { in GetJniEnv() function
51 return reinterpret_cast<JNIEnv*>(art::Thread::Current()->GetJniEnv()); in GetJniEnv()
68 event_handler->DispatchEvent<ArtJvmtiEvent::kVmStart>(self, GetJniEnv()); in NextRuntimePhase()
76 ScopedLocalRef<jthread> thread(GetJniEnv(), GetCurrentJThread()); in NextRuntimePhase()
77 event_handler->DispatchEvent<ArtJvmtiEvent::kVmInit>(self, GetJniEnv(), thread.get()); in NextRuntimePhase()
87 event_handler->DispatchEvent<ArtJvmtiEvent::kVmDeath>(self, GetJniEnv()); in NextRuntimePhase()
Dti_search.cc103 ScopedLocalRef<jobject> defaults_jobj(self->GetJniEnv(), nullptr); in Update()
113 defaults_jobj.reset(self->GetJniEnv()->AddLocalReference<jobject>(defaults_obj)); in Update()
134 ScopedLocalRef<jobject> cp_jobj(self->GetJniEnv(), nullptr); in Update()
143 cp_jobj.reset(self->GetJniEnv()->AddLocalReference<jobject>(cp_key)); in Update()
149 ScopedLocalRef<jobject> old_value(self->GetJniEnv(), in Update()
150 self->GetJniEnv()->CallObjectMethod( in Update()
157 self->GetJniEnv()->DeleteLocalRef(old_value.release()); in Update()
170 ScopedLocalRef<jobject> new_val_jobj(self->GetJniEnv(), nullptr); in Update()
180 new_val_jobj.reset(self->GetJniEnv()->AddLocalReference<jobject>(new_value)); in Update()
184 ScopedLocalRef<jobject> res_obj(self->GetJniEnv(), in Update()
[all …]
Devents.cc333 art::JNIEnvExt* jni_env = self->GetJniEnv(); in ObjectAllocated()
371 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MonitorContendedLocking()
385 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MonitorContendedLocked()
399 art::JNIEnvExt* jnienv = self->GetJniEnv(); in ObjectWaitStart()
426 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MonitorWaitFinished()
449 art::JNIEnvExt* jnienv = self->GetJniEnv(); in ThreadParkStart()
507 art::JNIEnvExt* jnienv = self->GetJniEnv(); in ThreadParkFinished()
607 jobject new_val = is_object ? self->GetJniEnv()->NewGlobalRef(val.l) : nullptr; in AddDelayedNonStandardExitEvent()
623 self->GetJniEnv()->DeleteGlobalRef(to_cleanup); in AddDelayedNonStandardExitEvent()
634 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MethodEntered()
[all …]
Dti_class.cc282 ScopedLocalRef<jclass> jklass(thread->GetJniEnv(), in ClassLoad()
283 thread->GetJniEnv()->AddLocalReference<jclass>(klass.Get())); in ClassLoad()
286 thread->GetJniEnv(), in ClassLoad()
287 peer.IsNull() ? nullptr : thread->GetJniEnv()->AddLocalReference<jthread>(peer)); in ClassLoad()
290 static_cast<JNIEnv*>(thread->GetJniEnv()), in ClassLoad()
309 ScopedLocalRef<jclass> jklass(thread->GetJniEnv(), in ClassPrepare()
310 thread->GetJniEnv()->AddLocalReference<jclass>(klass.Get())); in ClassPrepare()
313 thread->GetJniEnv(), in ClassPrepare()
314 peer.IsNull() ? nullptr : thread->GetJniEnv()->AddLocalReference<jthread>(peer)); in ClassPrepare()
317 static_cast<JNIEnv*>(thread->GetJniEnv()), in ClassPrepare()
[all …]
Dti_ddms.cc68 if (!art::Dbg::DdmHandleChunk(self->GetJniEnv(), in HandleChunk()
Dti_object.cc89 art::JNIEnvExt* jni = self->GetJniEnv(); in GetObjectMonitorUsage()
Dti_thread.cc98 return self->GetJniEnv()->AddLocalReference<jthread>(self->GetPeer()); in GetThreadObject()
104 ScopedLocalRef<jthread> thread(self->GetJniEnv(), GetThreadObject(self)); in Post()
107 reinterpret_cast<JNIEnv*>(self->GetJniEnv()), in Post()
178 JNIEnv* jni = self->GetJniEnv(); in WaitForSystemDaemonStart()
781 JNIEnv* env = self->GetJniEnv(); in AgentCallback()
813 JNIEnv* env = art::Thread::Current()->GetJniEnv(); in RunAgentThread()
Dti_properties.cc176 JNIEnv* jni_env = art::Thread::Current()->GetJniEnv(); in GetLibraryPath()
Dart_jvmti.h127 static inline JNIEnv* GetJniEnv(jvmtiEnv* env) { in GetJniEnv() function
Dti_threadgroup.cc83 reinterpret_cast<JNIEnv*>(art::Thread::Current()->GetJniEnv())->NewLocalRef(sys_thread_group); in GetTopThreadGroups()
Dti_stack.cc391 JNIEnv* jni_env = art::Thread::Current()->GetJniEnv(); in GetAllStackTraces()
498 static_cast<JNIEnv*>(current->GetJniEnv())->NewLocalRef(data.thread_peers[i]); in GetAllStackTraces()
911 target->GetJniEnv()->VisitMonitorRoots(&visitor, root_info); in Run()
1311 jvalue jval{ .l = art::Thread::Current()->GetJniEnv()->NewGlobalRef(obj) }; in AddDelayedMethodExitEvent()
1386 ScopedLocalRef<jthread> cur_thread(self->GetJniEnv(), nullptr); in ForceEarlyReturn()
/art/runtime/
Dnon_debuggable_classes.cc32 JNIEnvExt* env = self->GetJniEnv(); in AddNonDebuggableClass()
Dproxy_test.cc38 WellKnownClasses::Init(art::Thread::Current()->GetJniEnv()); in SetUp()
41 WellKnownClasses::LateInit(art::Thread::Current()->GetJniEnv()); in SetUp()
Dscoped_thread_state_change-inl.h101 env_(down_cast<JNIEnvExt*>(self->GetJniEnv())), in ScopedObjectAccessAlreadyRunnable()
Druntime.cc408 self->GetJniEnv()->CallStaticVoidMethod(WellKnownClasses::java_lang_Daemons, in ~Runtime()
791 JNIEnv* env = soa.Self()->GetJniEnv(); in CreateSystemClassLoader()
937 InitNonZygoteOrPostFork(self->GetJniEnv(), in Start()
950 self->GetJniEnv()->AssertLocalsEmpty(); in Start()
962 self->GetJniEnv()->AssertLocalsEmpty(); in Start()
1108 JNIEnv* env = self->GetJniEnv(); in StartDaemonThreads()
1874 JNIEnv* env = self->GetJniEnv(); in InitNativeMethods()
1929 JNIEnvExt* env = self->GetJniEnv(); in InitThreadGroups()
3032 WellKnownClasses::HandleJniIdTypeChange(Thread::Current()->GetJniEnv()); in SetJniIdType()
/art/runtime/entrypoints/quick/
Dquick_jni_entrypoints.cc52 JNIEnvExt* env = self->GetJniEnv(); in JniMethodFastStart()
67 JNIEnvExt* env = self->GetJniEnv(); in JniMethodStart()
117 JNIEnvExt* env = self->GetJniEnv(); in PopLocalReferences()
182 if (UNLIKELY(self->GetJniEnv()->IsCheckJniEnabled())) { in JniMethodEndWithReferenceHandleResult()
Dquick_trampoline_entrypoints.cc819 JNIEnvExt* env = self->GetJniEnv(); in artQuickProxyInvokeHandler()
1227 JNIEnvExt* env = self->GetJniEnv(); in artQuickResolutionTrampoline()
1980 sm_.AdvancePointer(self->GetJniEnv()); in BuildGenericJniFrameVisitor()
2281 ScopedObjectAccessUnchecked soa(self->GetJniEnv()); in artInvokeCommon()
2415 ScopedObjectAccessUnchecked soa(self->GetJniEnv()); in artInvokeInterfaceTrampoline()
2506 JNIEnvExt* env = self->GetJniEnv(); in artInvokePolymorphic()
2629 JNIEnvExt* env = self->GetJniEnv(); in artInvokeCustom()
/art/runtime/native/
Ddalvik_system_ZygoteHooks.cc65 self_->GetJniEnv()->PushFrame(kClassSetCapacity); in ClassSet()
69 self_->GetJniEnv()->PopFrame(); in ~ClassSet()
73 class_set_.insert(self_->GetJniEnv()->AddLocalReference<jclass>(klass)); in AddClass()
170 Thread::Current()->GetJniEnv()->SetCheckJniEnabled(true); in EnableDebugFeatures()
/art/runtime/jni/
Djava_vm_ext.cc92 self->GetJniEnv()->DeleteWeakGlobalRef(class_loader_); in ~SharedLibrary()
358 UnloadLibraries(self->GetJniEnv()->GetVm(), unload_libraries); in UnloadNativeLibraries()
442 *p_env = self->GetJniEnv(); in AttachCurrentThreadInternal()
473 *p_env = Thread::Current()->GetJniEnv(); in AttachCurrentThreadInternal()
732 thread->GetJniEnv()->SetCheckJniEnabled(*check_jni); in ThreadEnableCheckJni()
1221 delete Thread::Current()->GetJniEnv(); in JNI_CreateJavaVM()
1227 *p_env = Thread::Current()->GetJniEnv(); in JNI_CreateJavaVM()
Djni_env_ext.cc64 *env = thread->GetJniEnv(); in GetEnvHandler()
295 JNIEnvExt* env = thread->GetJniEnv(); in ThreadResetFunctionTable()
/art/runtime/entrypoints/jni/
Djni_entrypoints.cc107 JavaVMExt* vm = down_cast<JNIEnvExt*>(self->GetJniEnv())->GetVm(); in artFindNativeMethodRunnable()
/art/adbconnection/
Dadbconnection.cc182 JNIEnv* env = thr->GetJniEnv(); in CreateAdbConnectionThread()
217 JNIEnv* env = self->GetJniEnv(); in CallbackFunction()
748 if (!art::Dbg::DdmHandleChunk(self->GetJniEnv(), in HandleDataWithoutAgent()
/art/tools/art_verifier/
Dart_verifier.cc67 WellKnownClasses::Init(self->GetJniEnv()); in Install()
/art/compiler/
Dexception_test.cc169 JNIEnv* env = thread->GetJniEnv(); in TEST_F()
/art/runtime/gc/
Dreference_processor.cc304 cleared_references = self->GetJniEnv()->GetVm()->AddGlobalRef( in CollectClearedReferences()

123