/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() 86 JNIEnv* jni_env, in ObjectAllocated() argument 91 std::string object_klass_descriptor = GetClassName(jni_env, object_klass); in ObjectAllocated() 92 ScopedLocalRef<jclass> object_klass2(jni_env, jni_env->GetObjectClass(object)); in ObjectAllocated() 93 std::string object_klass_descriptor2 = GetClassName(jni_env, object_klass2.get()); in ObjectAllocated() 100 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 | 338 JNIEnv* jni_env = nullptr; in GetClassLocation() local 339 jint ret = env->art_vm->GetEnv(reinterpret_cast<void**>(&jni_env), JNI_VERSION_1_1); in GetClassLocation() 344 art::ScopedObjectAccess soa(jni_env); in GetClassLocation()
|
D | OpenjdkJvmTi.cc | 425 JNIEnv* jni_env = GetJniEnv(env); in GetTag() local 426 if (jni_env == nullptr) { in GetTag() 430 art::ScopedObjectAccess soa(jni_env); in GetTag() 447 JNIEnv* jni_env = GetJniEnv(env); in SetTag() local 448 if (jni_env == nullptr) { in SetTag() 452 art::ScopedObjectAccess soa(jni_env); in SetTag() 468 JNIEnv* jni_env = GetJniEnv(env); in GetObjectsWithTags() local 469 if (jni_env == nullptr) { in GetObjectsWithTags() 473 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.cc | 309 art::JNIEnvExt* jni_env = self->GetJniEnv(); in ObjectAllocated() local 311 jni_env, jni_env->AddLocalReference<jobject>(*obj)); in ObjectAllocated() 313 jni_env, jni_env->AddLocalReference<jclass>(obj->Ptr()->GetClass())); in ObjectAllocated() 317 jni_env, in ObjectAllocated()
|
D | events.h | 82 JNIEnv* jni_env,
|
D | ti_stack.cc | 374 JNIEnv* jni_env = art::Thread::Current()->GetJniEnv(); in GetAllStackTraces() local 376 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 | 485 ManagedRegister jni_env = main_jni_conv->CurrentParamRegister(); in ArtJniCompileMethodInternal() local 486 DCHECK(!jni_env.Equals(main_jni_conv->InterproceduralScratchRegister())); in ArtJniCompileMethodInternal() 487 __ LoadRawPtrFromThread(jni_env, Thread::JniEnvOffset<kPointerSize>()); in ArtJniCompileMethodInternal() 489 FrameOffset jni_env = main_jni_conv->CurrentParamStackOffset(); in ArtJniCompileMethodInternal() local 490 __ CopyRawPtrFromThread(jni_env, in ArtJniCompileMethodInternal()
|
/art/runtime/ |
D | thread.cc | 947 tlsPtr_.jni_env = jni_env_ext; in Init() 950 tlsPtr_.jni_env = JNIEnvExt::Create(this, java_vm, &error_msg); in Init() 951 if (tlsPtr_.jni_env == nullptr) { in Init() 1076 JNIEnv* env = tlsPtr_.jni_env; in CreatePeer() 2384 if (tlsPtr_.jni_env != nullptr) { in Destroy() 2389 tlsPtr_.jni_env->monitors_.VisitRoots(&visitor, RootInfo(kRootVMInternal)); in Destroy() 2394 tlsPtr_.jni_env->DeleteGlobalRef(tlsPtr_.jpeer); in Destroy() 2398 tlsPtr_.jni_env->DeleteGlobalRef(tlsPtr_.class_loader_override); in Destroy() 2449 bool initialized = (tlsPtr_.jni_env != nullptr); // Did Thread::Init run? in ~Thread() 2451 delete tlsPtr_.jni_env; in ~Thread() [all …]
|
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 | 536 return tlsPtr_.jni_env; in GetJniEnv() 834 OFFSETOF_MEMBER(tls_ptr_sized_values, jni_env)); in JniEnvOffset() 1589 managed_stack(), suspend_trigger(nullptr), jni_env(nullptr), tmp_jni_env(nullptr), in PACKED() 1624 JNIEnvExt* jni_env; in PACKED() local
|
/art/tools/jvmti-agents/jit-load/ |
D | jitload.cc | 75 JNIEnv* jni_env ATTRIBUTE_UNUSED, in ClassPrepareJit()
|
/art/tools/jvmti-agents/titrace/ |
D | titrace.cc | 210 JNIEnv* jni_env ATTRIBUTE_UNUSED, in SingleStep()
|
/art/test/ti-agent/ |
D | redefinition_helper.cc | 235 JNIEnv* jni_env ATTRIBUTE_UNUSED, in CommonClassFileLoadHookRetransformable()
|