/art/test/912-classes/ |
D | classes.cc | 222 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 …]
|
D | classes_art.cc | 79 JNIEnv* jni_env ATTRIBUTE_UNUSED, in ClassLoadSeenCallback()
|
/art/test/904-object-allocation/ |
D | tracking.cc | 40 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/ |
D | get_loaded_classes.cc | 37 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/ |
D | ti_properties.cc | 176 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()
|
D | transform.cc | 363 JNIEnv* jni_env = nullptr; in GetClassLocation() local 364 jint ret = env->art_vm->GetEnv(reinterpret_cast<void**>(&jni_env), JNI_VERSION_1_1); in GetClassLocation() 369 art::ScopedObjectAccess soa(jni_env); in GetClassLocation()
|
D | OpenjdkJvmTi.cc | 417 JNIEnv* jni_env = GetJniEnv(env); in GetTag() local 418 if (jni_env == nullptr) { in GetTag() 422 art::ScopedObjectAccess soa(jni_env); in GetTag() 439 JNIEnv* jni_env = GetJniEnv(env); in SetTag() local 440 if (jni_env == nullptr) { in SetTag() 444 art::ScopedObjectAccess soa(jni_env); in SetTag() 460 JNIEnv* jni_env = GetJniEnv(env); in GetObjectsWithTags() local 461 if (jni_env == nullptr) { in GetObjectsWithTags() 465 art::ScopedObjectAccess soa(jni_env); in GetObjectsWithTags()
|
D | jvmti_weak_table-inl.h | 333 art::JNIEnvExt* jni_env = self->GetJniEnv(); 369 selected_objects.Pushback(jni_env->AddLocalReference<jobject>(obj));
|
D | events.h | 102 JNIEnv* jni_env, 112 JNIEnv* jni_env,
|
D | events.cc | 334 art::JNIEnvExt* jni_env = self->GetJniEnv(); in ObjectAllocated() local 336 jni_env, jni_env->AddLocalReference<jobject>(*obj)); in ObjectAllocated() 338 jni_env, jni_env->AddLocalReference<jclass>(obj->Ptr()->GetClass())); in ObjectAllocated() 342 jni_env, in ObjectAllocated()
|
D | ti_stack.cc | 391 JNIEnv* jni_env = art::Thread::Current()->GetJniEnv(); in GetAllStackTraces() local 393 jni_env->DeleteGlobalRef(global_thread_ref); in GetAllStackTraces()
|
/art/test/924-threads/ |
D | threads.cc | 190 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/ |
D | basics.cc | 47 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/ |
D | jvmti.h | 478 (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/ |
D | stress.cc | 614 JNIEnv* jni_env ATTRIBUTE_UNUSED, in ClassFileLoadHookSecretNoOp() 681 JNIEnv* jni_env, in PerformFinalSetupVMInit() argument 686 jclass klass = jni_env->FindClass("java/lang/VMClassLoader"); in PerformFinalSetupVMInit() 698 jni_env->ExceptionClear(); in PerformFinalSetupVMInit() 701 jni_env->GetMethodID(klass, "hashCode", "()I"); in PerformFinalSetupVMInit() 702 DeleteLocalRef(jni_env, klass); in PerformFinalSetupVMInit()
|
/art/compiler/jni/quick/ |
D | jni_compiler.cc | 496 ManagedRegister jni_env = main_jni_conv->CurrentParamRegister(); in ArtJniCompileMethodInternal() local 497 DCHECK(!jni_env.Equals(main_jni_conv->InterproceduralScratchRegister())); in ArtJniCompileMethodInternal() 498 __ LoadRawPtrFromThread(jni_env, Thread::JniEnvOffset<kPointerSize>()); in ArtJniCompileMethodInternal() 500 FrameOffset jni_env = main_jni_conv->CurrentParamStackOffset(); in ArtJniCompileMethodInternal() local 501 __ CopyRawPtrFromThread(jni_env, in ArtJniCompileMethodInternal()
|
/art/tools/jvmti-agents/jit-load/ |
D | jitload.cc | 75 JNIEnv* jni_env ATTRIBUTE_UNUSED, in ClassPrepareJit()
|
/art/tools/jvmti-agents/list-extensions/ |
D | README.md | 39 dalvikvm64 I 07-30 10:47:37 154719 154719 list-extensions.cc:139] jni_env (IN_PTR, JN…
|
/art/tools/jvmti-agents/titrace/ |
D | titrace.cc | 210 JNIEnv* jni_env ATTRIBUTE_UNUSED, in SingleStep()
|
/art/runtime/ |
D | entrypoints_order_test.cc | 89 EXPECT_OFFSET_DIFFP(Thread, tlsPtr_, suspend_trigger, jni_env, sizeof(void*)); in CheckThreadOffsets() 90 EXPECT_OFFSET_DIFFP(Thread, tlsPtr_, jni_env, tmp_jni_env, sizeof(void*)); in CheckThreadOffsets()
|
D | thread.h | 563 return tlsPtr_.jni_env; in GetJniEnv() 865 OFFSETOF_MEMBER(tls_ptr_sized_values, jni_env)); in JniEnvOffset() 1674 managed_stack(), suspend_trigger(nullptr), jni_env(nullptr), tmp_jni_env(nullptr), in PACKED() 1709 JNIEnvExt* jni_env; in PACKED() local
|
/art/test/ti-agent/ |
D | redefinition_helper.cc | 325 JNIEnv* jni_env ATTRIBUTE_UNUSED, in CommonClassFileLoadHookRetransformable()
|