Home
last modified time | relevance | path

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

12

/art/openjdkjvmti/
Dti_search.cc97 ScopedLocalRef<jobject> defaults_jobj(self->GetJniEnv(), nullptr); in Update()
107 defaults_jobj.reset(self->GetJniEnv()->AddLocalReference<jobject>(defaults_obj)); in Update()
128 ScopedLocalRef<jobject> cp_jobj(self->GetJniEnv(), nullptr); in Update()
137 cp_jobj.reset(self->GetJniEnv()->AddLocalReference<jobject>(cp_key)); in Update()
143 ScopedLocalRef<jobject> old_value(self->GetJniEnv(), in Update()
144 self->GetJniEnv()->CallObjectMethod( in Update()
151 self->GetJniEnv()->DeleteLocalRef(old_value.release()); in Update()
164 ScopedLocalRef<jobject> new_val_jobj(self->GetJniEnv(), nullptr); in Update()
174 new_val_jobj.reset(self->GetJniEnv()->AddLocalReference<jobject>(new_value)); in Update()
178 ScopedLocalRef<jobject> res_obj(self->GetJniEnv(), in Update()
[all …]
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()
Devents.cc278 static_cast<JNIEnv*>(self->GetJniEnv()), in DdmPublishChunk()
309 art::JNIEnvExt* jni_env = self->GetJniEnv(); in ObjectAllocated()
348 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MonitorContendedLocking()
362 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MonitorContendedLocked()
376 art::JNIEnvExt* jnienv = self->GetJniEnv(); in ObjectWaitStart()
403 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MonitorWaitFinished()
426 art::JNIEnvExt* jnienv = self->GetJniEnv(); in ThreadParkStart()
484 art::JNIEnvExt* jnienv = self->GetJniEnv(); in ThreadParkFinished()
584 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MethodEntered()
606 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MethodExited()
[all …]
Dti_class.cc277 ScopedLocalRef<jclass> jklass(thread->GetJniEnv(), in ClassLoad()
278 thread->GetJniEnv()->AddLocalReference<jclass>(klass.Get())); in ClassLoad()
281 thread->GetJniEnv(), in ClassLoad()
282 peer.IsNull() ? nullptr : thread->GetJniEnv()->AddLocalReference<jthread>(peer)); in ClassLoad()
285 static_cast<JNIEnv*>(thread->GetJniEnv()), in ClassLoad()
304 ScopedLocalRef<jclass> jklass(thread->GetJniEnv(), in ClassPrepare()
305 thread->GetJniEnv()->AddLocalReference<jclass>(klass.Get())); in ClassPrepare()
308 thread->GetJniEnv(), in ClassPrepare()
309 peer.IsNull() ? nullptr : thread->GetJniEnv()->AddLocalReference<jthread>(peer)); in ClassPrepare()
312 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_properties.cc176 JNIEnv* jni_env = art::Thread::Current()->GetJniEnv(); in GetLibraryPath()
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()
176 JNIEnv* jni = self->GetJniEnv(); in WaitForSystemDaemonStart()
778 JNIEnv* env = self->GetJniEnv(); in AgentCallback()
810 JNIEnv* env = art::Thread::Current()->GetJniEnv(); in RunAgentThread()
Dti_method.cc76 art::JNIEnvExt* jnienv = thread->GetJniEnv(); in RegisterNativeMethod()
649 art::JNIEnvExt* jni = art::Thread::Current()->GetJniEnv(); in GetResult()
692 art::JNIEnvExt* jni = art::Thread::Current()->GetJniEnv(); in Execute()
922 : art::Thread::Current()->GetJniEnv()->AddLocalReference<jobject>(val_.Read()); in GetResult()
Dart_jvmti.h127 static inline JNIEnv* GetJniEnv(jvmtiEnv* env) { in GetJniEnv() function
Dtransform.cc270 static_cast<JNIEnv*>(self->GetJniEnv()), in TransformSingleClassDirect()
Dti_threadgroup.cc83 reinterpret_cast<JNIEnv*>(art::Thread::Current()->GetJniEnv())->NewLocalRef(sys_thread_group); in GetTopThreadGroups()
/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()
159 if (UNLIKELY(self->GetJniEnv()->IsCheckJniEnabled())) { in JniMethodEndWithReferenceHandleResult()
Dquick_trampoline_entrypoints.cc904 JNIEnvExt* env = self->GetJniEnv(); in artQuickProxyInvokeHandler()
1309 JNIEnvExt* env = self->GetJniEnv(); in artQuickResolutionTrampoline()
2166 sm_.AdvancePointer(self->GetJniEnv()); in BuildGenericJniFrameVisitor()
2539 ScopedObjectAccessUnchecked soa(self->GetJniEnv()); in artInvokeCommon()
2673 ScopedObjectAccessUnchecked soa(self->GetJniEnv()); in artInvokeInterfaceTrampoline()
2755 JNIEnvExt* env = self->GetJniEnv(); in artInvokePolymorphic()
2878 JNIEnvExt* env = self->GetJniEnv(); in artInvokeCustom()
/art/runtime/jdwp/
Dobject_registry.cc164 JNIEnv* env = self->GetJniEnv(); in Clear()
223 JNIEnv* env = self->GetJniEnv(); in Demote()
234 JNIEnv* env = self->GetJniEnv(); in Promote()
249 JNIEnv* env = self->GetJniEnv(); in IsCollected()
266 JNIEnv* env = self->GetJniEnv(); in DisposeObject()
/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.h105 env_(down_cast<JNIEnvExt*>(self->GetJniEnv())), in ScopedObjectAccessAlreadyRunnable()
/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()
167 Thread::Current()->GetJniEnv()->SetCheckJniEnabled(true); in EnableDebugFeatures()
/art/runtime/jni/
Djava_vm_ext.cc90 self->GetJniEnv()->DeleteWeakGlobalRef(class_loader_); in ~SharedLibrary()
356 UnloadLibraries(self->GetJniEnv()->GetVm(), unload_libraries); in UnloadNativeLibraries()
433 *p_env = self->GetJniEnv(); in AttachCurrentThreadInternal()
464 *p_env = Thread::Current()->GetJniEnv(); in AttachCurrentThreadInternal()
723 thread->GetJniEnv()->SetCheckJniEnabled(*check_jni); in ThreadEnableCheckJni()
1212 delete Thread::Current()->GetJniEnv(); in JNI_CreateJavaVM()
1218 *p_env = Thread::Current()->GetJniEnv(); in JNI_CreateJavaVM()
Djni_env_ext.cc63 *env = thread->GetJniEnv(); in GetEnvHandler()
295 JNIEnvExt* env = thread->GetJniEnv(); in ThreadResetFunctionTable()
/art/tools/art_verifier/
Dart_verifier.cc67 WellKnownClasses::Init(self->GetJniEnv()); in Install()
/art/adbconnection/
Dadbconnection.cc153 JNIEnv* env = thr->GetJniEnv(); in CreateAdbConnectionThread()
189 JNIEnv* env = self->GetJniEnv(); in CallbackFunction()
764 if (!art::Dbg::DdmHandleChunk(self->GetJniEnv(), in HandleDataWithoutAgent()
/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()

12