Home
last modified time | relevance | path

Searched refs:jni_env (Results 1 – 23 of 23) 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 JNIEnv* jni_env ATTRIBUTE_UNUSED, 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.cc362 JNIEnv* jni_env = nullptr; in GetClassLocation() local
363 jint ret = env->art_vm->GetEnv(reinterpret_cast<void**>(&jni_env), JNI_VERSION_1_1); in GetClassLocation()
368 art::ScopedObjectAccess soa(jni_env); in GetClassLocation()
DOpenjdkJvmTi.cc417 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()
Djvmti_weak_table-inl.h333 art::JNIEnvExt* jni_env = self->GetJniEnv();
369 selected_objects.Pushback(jni_env->AddLocalReference<jobject>(obj));
Devents.cc333 art::JNIEnvExt* jni_env = self->GetJniEnv(); in ObjectAllocated() local
335 jni_env, jni_env->AddLocalReference<jobject>(*obj)); in ObjectAllocated()
337 jni_env, jni_env->AddLocalReference<jclass>(obj->Ptr()->GetClass())); in ObjectAllocated()
341 jni_env, in ObjectAllocated()
Devents.h111 JNIEnv* jni_env,
Dti_stack.cc391 JNIEnv* jni_env = art::Thread::Current()->GetJniEnv(); in GetAllStackTraces() local
393 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.cc614 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/runtime/
Dthread.cc965 tlsPtr_.jni_env = jni_env_ext; in Init()
968 tlsPtr_.jni_env = JNIEnvExt::Create(this, java_vm, &error_msg); in Init()
969 if (tlsPtr_.jni_env == nullptr) { in Init()
1097 JNIEnv* env = tlsPtr_.jni_env; in CreatePeer()
2401 if (tlsPtr_.jni_env != nullptr) { in Destroy()
2406 tlsPtr_.jni_env->monitors_.VisitRoots(&visitor, RootInfo(kRootVMInternal)); in Destroy()
2411 tlsPtr_.jni_env->DeleteGlobalRef(tlsPtr_.jpeer); in Destroy()
2415 tlsPtr_.jni_env->DeleteGlobalRef(tlsPtr_.class_loader_override); in Destroy()
2468 bool initialized = (tlsPtr_.jni_env != nullptr); // Did Thread::Init run? in ~Thread()
2470 delete tlsPtr_.jni_env; in ~Thread()
[all …]
Dentrypoints_order_test.cc88 EXPECT_OFFSET_DIFFP(Thread, tlsPtr_, suspend_trigger, jni_env, sizeof(void*)); in CheckThreadOffsets()
89 EXPECT_OFFSET_DIFFP(Thread, tlsPtr_, jni_env, tmp_jni_env, sizeof(void*)); in CheckThreadOffsets()
Dthread.h565 return tlsPtr_.jni_env; in GetJniEnv()
873 OFFSETOF_MEMBER(tls_ptr_sized_values, jni_env)); in JniEnvOffset()
1685 managed_stack(), suspend_trigger(nullptr), jni_env(nullptr), tmp_jni_env(nullptr), in PACKED()
1720 JNIEnvExt* jni_env; in PACKED() local
/art/compiler/jni/quick/
Djni_compiler.cc419 ManagedRegister jni_env = main_jni_conv->CurrentParamRegister(); in ArtJniCompileMethodInternal() local
420 __ LoadRawPtrFromThread(jni_env, Thread::JniEnvOffset<kPointerSize>()); in ArtJniCompileMethodInternal()
422 FrameOffset jni_env = main_jni_conv->CurrentParamStackOffset(); in ArtJniCompileMethodInternal() local
423 __ CopyRawPtrFromThread(jni_env, Thread::JniEnvOffset<kPointerSize>()); in ArtJniCompileMethodInternal()
/art/tools/jvmti-agents/jit-load/
Djitload.cc75 JNIEnv* jni_env ATTRIBUTE_UNUSED, in ClassPrepareJit()
/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/tools/jvmti-agents/titrace/
Dtitrace.cc210 JNIEnv* jni_env ATTRIBUTE_UNUSED, in SingleStep()
/art/test/ti-agent/
Dredefinition_helper.cc325 JNIEnv* jni_env ATTRIBUTE_UNUSED, in CommonClassFileLoadHookRetransformable()