Home
last modified time | relevance | path

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

/art/test/904-object-allocation/
Dtracking.cc38 static std::string GetClassName(JNIEnv* jni_env, jclass cls) { in GetClassName() argument
39 ScopedLocalRef<jclass> class_class(jni_env, jni_env->GetObjectClass(cls)); in GetClassName()
40 jmethodID mid = jni_env->GetMethodID(class_class.get(), "getName", "()Ljava/lang/String;"); in GetClassName()
42 jni_env, reinterpret_cast<jstring>(jni_env->CallObjectMethod(cls, mid))); in GetClassName()
43 ScopedUtfChars utf_chars(jni_env, str.get()); in GetClassName()
51 JNIEnv* jni_env, in ObjectAllocated() argument
56 std::string object_klass_descriptor = GetClassName(jni_env, object_klass); in ObjectAllocated()
57 ScopedLocalRef<jclass> object_klass2(jni_env, jni_env->GetObjectClass(object)); in ObjectAllocated()
58 std::string object_klass_descriptor2 = GetClassName(jni_env, object_klass2.get()); in ObjectAllocated()
/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 JNIEnv* jni_env ATTRIBUTE_UNUSED, in ClassLoadSeenCallback()
/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.cc336 JNIEnv* jni_env = nullptr; in GetClassLocation() local
337 jint ret = env->art_vm->GetEnv(reinterpret_cast<void**>(&jni_env), JNI_VERSION_1_1); in GetClassLocation()
342 art::ScopedObjectAccess soa(jni_env); in GetClassLocation()
DOpenjdkJvmTi.cc415 JNIEnv* jni_env = GetJniEnv(env); in GetTag() local
416 if (jni_env == nullptr) { in GetTag()
420 art::ScopedObjectAccess soa(jni_env); in GetTag()
437 JNIEnv* jni_env = GetJniEnv(env); in SetTag() local
438 if (jni_env == nullptr) { in SetTag()
442 art::ScopedObjectAccess soa(jni_env); in SetTag()
458 JNIEnv* jni_env = GetJniEnv(env); in GetObjectsWithTags() local
459 if (jni_env == nullptr) { in GetObjectsWithTags()
463 art::ScopedObjectAccess soa(jni_env); in GetObjectsWithTags()
Devents.cc304 art::JNIEnvExt* jni_env = self->GetJniEnv(); in ObjectAllocated() local
306 jni_env, jni_env->AddLocalReference<jobject>(*obj)); in ObjectAllocated()
308 jni_env, jni_env->AddLocalReference<jclass>(obj->Ptr()->GetClass())); in ObjectAllocated()
312 jni_env, in ObjectAllocated()
Djvmti_weak_table-inl.h333 art::JNIEnvExt* jni_env = self->GetJniEnv();
369 selected_objects.Pushback(jni_env->AddLocalReference<jobject>(obj));
Devents.h80 JNIEnv* jni_env,
Dti_stack.cc350 JNIEnv* jni_env = art::Thread::Current()->GetJniEnv(); in GetAllStackTraces() local
352 jni_env->DeleteGlobalRef(global_thread_ref); in GetAllStackTraces()
/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, JNIEnv* jni_env ATTRIBUTE_UNUSED) { in VMStartCallback()
53 JNIEnv* jni_env ATTRIBUTE_UNUSED, in VMInitCallback()
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.cc630 JNIEnv* jni_env ATTRIBUTE_UNUSED, in ClassFileLoadHookSecretNoOp()
697 JNIEnv* jni_env, in PerformFinalSetupVMInit() argument
702 jclass klass = jni_env->FindClass("java/lang/VMClassLoader"); in PerformFinalSetupVMInit()
714 jni_env->ExceptionClear(); in PerformFinalSetupVMInit()
717 jni_env->GetMethodID(klass, "hashCode", "()I"); in PerformFinalSetupVMInit()
718 jni_env->DeleteLocalRef(klass); in PerformFinalSetupVMInit()
/art/runtime/
Dthread.cc760 tlsPtr_.jni_env = jni_env_ext; in Init()
763 tlsPtr_.jni_env = JNIEnvExt::Create(this, java_vm, &error_msg); in Init()
764 if (tlsPtr_.jni_env == nullptr) { in Init()
886 JNIEnv* env = tlsPtr_.jni_env; in CreatePeer()
2184 if (tlsPtr_.jni_env != nullptr) { in Destroy()
2189 tlsPtr_.jni_env->monitors_.VisitRoots(&visitor, RootInfo(kRootVMInternal)); in Destroy()
2194 tlsPtr_.jni_env->DeleteGlobalRef(tlsPtr_.jpeer); in Destroy()
2198 tlsPtr_.jni_env->DeleteGlobalRef(tlsPtr_.class_loader_override); in Destroy()
2249 bool initialized = (tlsPtr_.jni_env != nullptr); // Did Thread::Init run? in ~Thread()
2251 delete tlsPtr_.jni_env; in ~Thread()
[all …]
Dentrypoints_order_test.cc91 EXPECT_OFFSET_DIFFP(Thread, tlsPtr_, suspend_trigger, jni_env, sizeof(void*)); in CheckThreadOffsets()
92 EXPECT_OFFSET_DIFFP(Thread, tlsPtr_, jni_env, tmp_jni_env, sizeof(void*)); in CheckThreadOffsets()
Dthread.h537 return tlsPtr_.jni_env; in GetJniEnv()
856 OFFSETOF_MEMBER(tls_ptr_sized_values, jni_env)); in JniEnvOffset()
1560 managed_stack(), suspend_trigger(nullptr), jni_env(nullptr), tmp_jni_env(nullptr), in PACKED()
1596 JNIEnvExt* jni_env; in PACKED() local
/art/compiler/jni/quick/
Djni_compiler.cc491 ManagedRegister jni_env = main_jni_conv->CurrentParamRegister(); in ArtJniCompileMethodInternal() local
492 DCHECK(!jni_env.Equals(main_jni_conv->InterproceduralScratchRegister())); in ArtJniCompileMethodInternal()
493 __ LoadRawPtrFromThread(jni_env, Thread::JniEnvOffset<kPointerSize>()); in ArtJniCompileMethodInternal()
495 FrameOffset jni_env = main_jni_conv->CurrentParamStackOffset(); in ArtJniCompileMethodInternal() local
496 __ CopyRawPtrFromThread(jni_env, in ArtJniCompileMethodInternal()
/art/tools/titrace/
Dtitrace.cc210 JNIEnv* jni_env ATTRIBUTE_UNUSED, in SingleStep()
/art/test/ti-agent/
Dredefinition_helper.cc235 JNIEnv* jni_env ATTRIBUTE_UNUSED, in CommonClassFileLoadHookRetransformable()