Home
last modified time | relevance | path

Searched refs:jni_env (Results 1 – 24 of 24) sorted by relevance

/art/test/912-classes/
Dclasses.cc222 static std::string GetClassName(jvmtiEnv* jenv, JNIEnv* jni_env, jclass klass) { in GetClassName() argument
226 if (jni_env != nullptr) { in GetClassName()
227 JvmtiErrorToException(jni_env, jenv, result); in GetClassName()
298 JNIEnv* jni_env, in ClassLoadCallback() argument
301 std::string name = GetClassName(jenv, jni_env, klass); in ClassLoadCallback()
305 std::string thread_name = GetThreadName(jenv, jni_env, thread); in ClassLoadCallback()
320 JNIEnv* jni_env, in ClassPrepareCallback() argument
323 std::string name = GetClassName(jenv, jni_env, klass); in ClassPrepareCallback()
327 std::string thread_name = GetThreadName(jenv, jni_env, thread); in ClassPrepareCallback()
334 std::string cur_thread_name = GetThreadName(jenv, jni_env, nullptr); in ClassPrepareCallback()
[all …]
Dclasses_art.cc79 [[maybe_unused]] JNIEnv* jni_env, in ClassLoadSeenCallback()
/art/test/904-object-allocation/
Dtracking.cc40 static std::string GetClassName(JNIEnv* jni_env, jclass cls) { in GetClassName() argument
41 ScopedLocalRef<jclass> class_class(jni_env, jni_env->GetObjectClass(cls)); in GetClassName()
42 jmethodID mid = jni_env->GetMethodID(class_class.get(), "getName", "()Ljava/lang/String;"); in GetClassName()
44 jni_env, reinterpret_cast<jstring>(jni_env->CallObjectMethod(cls, mid))); in GetClassName()
45 ScopedUtfChars utf_chars(jni_env, str.get()); in GetClassName()
88 JNIEnv* jni_env, in ObjectAllocated() argument
93 ScopedLocalRef<jclass> object_klass2(jni_env, jni_env->GetObjectClass(object)); in ObjectAllocated()
95 gEvents.push_back({ScopedGlobalRef<jclass>(jni_env, object_klass), in ObjectAllocated()
96 ScopedGlobalRef<jclass>(jni_env, object_klass2.get()), in ObjectAllocated()
98 ScopedGlobalRef<jthread>(jni_env, thread)}); in ObjectAllocated()
/art/test/907-get-loaded-classes/
Dget_loaded_classes.cc37 static jstring GetClassName(JNIEnv* jni_env, jclass cls) { in GetClassName() argument
38 ScopedLocalRef<jclass> class_class(jni_env, jni_env->GetObjectClass(cls)); in GetClassName()
39 jmethodID mid = jni_env->GetMethodID(class_class.get(), "getName", "()Ljava/lang/String;"); in GetClassName()
40 return reinterpret_cast<jstring>(jni_env->CallObjectMethod(cls, mid)); in GetClassName()
/art/openjdkjvmti/
Dti_properties.cc176 JNIEnv* jni_env = art::Thread::Current()->GetJniEnv(); in GetLibraryPath() local
177 jmethodID get_prop = jni_env->GetStaticMethodID(art::WellKnownClasses::java_lang_System, in GetLibraryPath()
182 ScopedLocalRef<jobject> input_str(jni_env, jni_env->NewStringUTF(kPropertyLibraryPath)); in GetLibraryPath()
184 jni_env->ExceptionClear(); in GetLibraryPath()
189 jni_env, jni_env->CallStaticObjectMethod(art::WellKnownClasses::java_lang_System, in GetLibraryPath()
192 if (jni_env->ExceptionCheck() == JNI_TRUE) { in GetLibraryPath()
193 jni_env->ExceptionClear(); in GetLibraryPath()
201 ScopedUtfChars chars(jni_env, reinterpret_cast<jstring>(prop_res.get())); in GetLibraryPath()
Dtransform.cc208 JNIEnv* jni_env = nullptr; in GetClassLocation() local
209 jint ret = env->art_vm->GetEnv(reinterpret_cast<void**>(&jni_env), JNI_VERSION_1_1); in GetClassLocation()
214 art::ScopedObjectAccess soa(jni_env); in GetClassLocation()
DOpenjdkJvmTi.cc411 JNIEnv* jni_env = GetJniEnv(env); in GetTag() local
412 if (jni_env == nullptr) { in GetTag()
416 art::ScopedObjectAccess soa(jni_env); in GetTag()
433 JNIEnv* jni_env = GetJniEnv(env); in SetTag() local
434 if (jni_env == nullptr) { in SetTag()
438 art::ScopedObjectAccess soa(jni_env); in SetTag()
454 JNIEnv* jni_env = GetJniEnv(env); in GetObjectsWithTags() local
455 if (jni_env == nullptr) { in GetObjectsWithTags()
459 art::ScopedObjectAccess soa(jni_env); in GetObjectsWithTags()
Djvmti_weak_table-inl.h335 art::JNIEnvExt* jni_env = self->GetJniEnv();
371 selected_objects.Pushback(jni_env->AddLocalReference<jobject>(obj));
Devents.cc332 art::JNIEnvExt* jni_env = self->GetJniEnv(); in ObjectAllocated() local
334 jni_env, jni_env->AddLocalReference<jobject>(*obj)); in ObjectAllocated()
336 jni_env, jni_env->AddLocalReference<jclass>(obj->Ptr()->GetClass())); in ObjectAllocated()
340 jni_env, in ObjectAllocated()
Devents.h109 JNIEnv* jni_env,
Dti_stack.cc395 JNIEnv* jni_env = art::Thread::Current()->GetJniEnv(); in GetAllStackTraces() local
397 jni_env->DeleteGlobalRef(global_thread_ref); in GetAllStackTraces()
/art/benchmark/golem-tiagent/
Dgolem-tiagent.cc39 JNIEnv* jni_env, in VMInitCallback() argument
43 jclass cl = jni_env->FindClass("java/lang/Thread"); in VMInitCallback()
48 jmethodID method = jni_env->GetMethodID(cl, "stop", "()V"); in VMInitCallback()
/art/test/924-threads/
Dthreads.cc190 JNIEnv* jni_env, in ThreadEvent() argument
209 jni_env->DeleteLocalRef(info.thread_group); in ThreadEvent()
210 jni_env->DeleteLocalRef(info.context_class_loader); in ThreadEvent()
214 JNIEnv* jni_env, in ThreadStart() argument
216 ThreadEvent(jvmti_env, jni_env, thread, true); in ThreadStart()
220 JNIEnv* jni_env, in ThreadEnd() argument
222 ThreadEvent(jvmti_env, jni_env, thread, false); in ThreadEnd()
/art/test/901-hello-ti-agent/
Dbasics.cc47 static void JNICALL VMStartCallback(jvmtiEnv *jenv, [[maybe_unused]] JNIEnv* jni_env) { in VMStartCallback() argument
53 [[maybe_unused]] JNIEnv* jni_env, in VMInitCallback() argument
59 static void JNICALL VMDeathCallback(jvmtiEnv *jenv, JNIEnv* jni_env) { in VMDeathCallback() argument
65 jni_env->DeleteLocalRef(cur_thr); in VMDeathCallback()
/art/openjdkjvmti/include/
Djvmti.h478 (jvmtiEnv* jvmti_env, JNIEnv* jni_env, void* arg);
722 JNIEnv* jni_env,
729 JNIEnv* jni_env,
741 JNIEnv* jni_env,
747 JNIEnv* jni_env,
776 JNIEnv* jni_env,
786 JNIEnv* jni_env,
794 JNIEnv* jni_env,
804 JNIEnv* jni_env,
816 JNIEnv* jni_env,
[all …]
/art/test/ti-stress/
Dstress.cc613 [[maybe_unused]] JNIEnv* jni_env, in ClassFileLoadHookSecretNoOp() argument
680 JNIEnv* jni_env, in PerformFinalSetupVMInit() argument
685 jclass klass = jni_env->FindClass("java/lang/VMClassLoader"); in PerformFinalSetupVMInit()
697 jni_env->ExceptionClear(); in PerformFinalSetupVMInit()
700 jni_env->GetMethodID(klass, "hashCode", "()I"); in PerformFinalSetupVMInit()
701 DeleteLocalRef(jni_env, klass); in PerformFinalSetupVMInit()
/art/tools/jvmti-agents/jit-load/
Djitload.cc75 [[maybe_unused]] JNIEnv* jni_env, in ClassPrepareJit() argument
/art/tools/jvmti-agents/list-extensions/
DREADME.md39 dalvikvm64 I 07-30 10:47:37 154719 154719 list-extensions.cc:139] jni_env (IN_PTR, JN…
/art/runtime/
Dthread.cc990 tlsPtr_.jni_env = jni_env_ext; in Init()
993 tlsPtr_.jni_env = JNIEnvExt::Create(this, java_vm, &error_msg); in Init()
994 if (tlsPtr_.jni_env == nullptr) { in Init()
2596 if (tlsPtr_.jni_env != nullptr) { in Destroy()
2601 tlsPtr_.jni_env->monitors_.VisitRoots(&visitor, RootInfo(kRootVMInternal)); in Destroy()
2606 tlsPtr_.jni_env->DeleteGlobalRef(tlsPtr_.jpeer); in Destroy()
2610 tlsPtr_.jni_env->DeleteGlobalRef(tlsPtr_.class_loader_override); in Destroy()
2662 bool initialized = (tlsPtr_.jni_env != nullptr); // Did Thread::Init run? in ~Thread()
2664 delete tlsPtr_.jni_env; in ~Thread()
2665 tlsPtr_.jni_env = nullptr; in ~Thread()
[all …]
Dentrypoints_order_test.cc87 EXPECT_OFFSET_DIFFP(Thread, tlsPtr_, suspend_trigger, jni_env, sizeof(void*)); in CheckThreadOffsets()
88 EXPECT_OFFSET_DIFFP(Thread, tlsPtr_, jni_env, tmp_jni_env, sizeof(void*)); in CheckThreadOffsets()
Dthread.h785 return tlsPtr_.jni_env; in GetJniEnv()
1137 OFFSETOF_MEMBER(tls_ptr_sized_values, jni_env)); in JniEnvOffset()
2115 jni_env(nullptr), in tls_ptr_sized_values()
2177 JNIEnvExt* jni_env; member
Dthread-inl.h68 CHECK_EQ(result, tlsPtr_.jni_env->locals_.Get(ref)); in DecodeJObject()
/art/tools/jvmti-agents/titrace/
Dtitrace.cc210 [[maybe_unused]] JNIEnv* jni_env, in SingleStep()
/art/test/ti-agent/
Dredefinition_helper.cc338 [[maybe_unused]] JNIEnv* jni_env, in CommonClassFileLoadHookRetransformable() argument