/art/test/ti-agent/ |
D | trace_helper.cc | 57 ScopedCallbackState(JNIEnv* jnienv, jvmtiEnv* env, jthread thr) in ScopedCallbackState() argument 58 : jnienv_(jnienv), env_(env), thr_(thr) { in ScopedCallbackState() 99 JNIEnv* jnienv, in threadStartCB() argument 102 if (JvmtiErrorToException(jnienv, jvmti, in threadStartCB() 106 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in threadStartCB() 111 jnienv->CallStaticVoidMethod(klass.get(), data->thread_start, thread); in threadStartCB() 114 JNIEnv* jnienv, in threadEndCB() argument 117 if (JvmtiErrorToException(jnienv, jvmti, in threadEndCB() 121 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in threadEndCB() 126 jnienv->CallStaticVoidMethod(klass.get(), data->thread_end, thread); in threadEndCB() [all …]
|
D | exceptions_helper.cc | 38 JNIEnv* jnienv, in exceptionCB() argument 46 if (JvmtiErrorToException(jnienv, jvmti, in exceptionCB() 51 if (!jnienv->IsInstanceOf(throwable, data->exception_klass)) { in exceptionCB() 54 jthrowable e = jnienv->ExceptionOccurred(); in exceptionCB() 55 jnienv->ExceptionClear(); in exceptionCB() 57 jobject throw_method_arg = GetJavaMethod(jvmti, jnienv, throw_method); in exceptionCB() 59 catch_method != nullptr ? GetJavaMethod(jvmti, jnienv, catch_method) : nullptr; in exceptionCB() 60 jnienv->CallStaticVoidMethod(data->test_klass, in exceptionCB() 68 jnienv->DeleteLocalRef(throw_method_arg); in exceptionCB() 70 jnienv->DeleteLocalRef(catch_method_arg); in exceptionCB() [all …]
|
D | monitors_helper.cc | 82 JNIEnv* jnienv, in monitorEnterCB() argument 86 if (JvmtiErrorToException(jnienv, jvmti, in monitorEnterCB() 90 if (!jnienv->IsInstanceOf(obj, data->monitor_klass)) { in monitorEnterCB() 93 jnienv->CallStaticVoidMethod(data->test_klass, data->monitor_enter, thr, obj); in monitorEnterCB() 96 JNIEnv* jnienv, in monitorEnteredCB() argument 100 if (JvmtiErrorToException(jnienv, jvmti, in monitorEnteredCB() 104 if (!jnienv->IsInstanceOf(obj, data->monitor_klass)) { in monitorEnteredCB() 107 jnienv->CallStaticVoidMethod(data->test_klass, data->monitor_entered, thr, obj); in monitorEnteredCB() 110 JNIEnv* jnienv, in monitorWaitCB() argument 115 if (JvmtiErrorToException(jnienv, jvmti, in monitorWaitCB() [all …]
|
D | frame_pop_helper.cc | 35 JNIEnv* jnienv, in framePopCB() argument 40 if (JvmtiErrorToException(jnienv, jvmti, in framePopCB() 46 if (JvmtiErrorToException(jnienv, in framePopCB() 52 jobject method_arg = GetJavaMethod(jvmti, jnienv, frame_method); in framePopCB() 53 jnienv->CallStaticVoidMethod(data->test_klass, in framePopCB() 58 jnienv->DeleteLocalRef(method_arg); in framePopCB()
|
D | breakpoint_helper.cc | 38 JNIEnv* jnienv, in breakpointCB() argument 43 if (JvmtiErrorToException(jnienv, jvmti, in breakpointCB() 51 jobject method_arg = GetJavaMethod(jvmti, jnienv, method); in breakpointCB() 52 jnienv->CallStaticVoidMethod(data->test_klass, in breakpointCB() 57 jnienv->DeleteLocalRef(method_arg); in breakpointCB()
|
/art/openjdkjvmti/ |
D | events.cc | 249 art::JNIEnvExt* jnienv, in RunEventCallback() argument 252 ScopedLocalRef<jthread> thread_jni(jnienv, AddLocalRef<jthread>(jnienv, self->GetPeer())); in RunEventCallback() 254 static_cast<JNIEnv*>(jnienv), in RunEventCallback() 348 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MonitorContendedLocking() local 349 ScopedLocalRef<jobject> mon(jnienv, AddLocalRef<jobject>(jnienv, m->GetObject())); in MonitorContendedLocking() 353 jnienv, in MonitorContendedLocking() 362 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MonitorContendedLocked() local 363 ScopedLocalRef<jobject> mon(jnienv, AddLocalRef<jobject>(jnienv, m->GetObject())); in MonitorContendedLocked() 367 jnienv, in MonitorContendedLocked() 376 art::JNIEnvExt* jnienv = self->GetJniEnv(); in ObjectWaitStart() local [all …]
|
D | events-inl.h | 152 void ExecuteCallback(JNIEnv* jnienv, Args... args) const { \ 154 ScopedEventDispatchEnvironment sede(jnienv); \ 155 DoExecute(jnienv, args...); \ 208 JNIEnv* jnienv, in DispatchClassFileLoadHookEvent() argument 225 jnienv, in DispatchClassFileLoadHookEvent() 239 jnienv, in DispatchClassFileLoadHookEvent() 285 inline void EventHandler::DispatchEvent(art::Thread* thread, JNIEnv* jnienv, Args... args) const { in DispatchEvent() argument 288 jnienv, in DispatchEvent() 291 ExecuteCallback<kEvent>(event, jnienv, args...); in DispatchEvent() 297 ArtJvmTiEnv* env, art::Thread* thread, JNIEnv* jnienv, Args... args) const { in DispatchEventOnEnv() argument [all …]
|
D | events.h | 222 inline void DispatchEvent(art::Thread* thread, JNIEnv* jnienv, Args... args) const 239 JNIEnv* jnienv, 300 JNIEnv* jnienv, 313 JNIEnv* jnienv,
|
D | ti_method.cc | 76 art::JNIEnvExt* jnienv = thread->GetJniEnv(); in RegisterNativeMethod() local 78 jnienv, PhaseUtil::IsLivePhase() ? jnienv->AddLocalReference<jthread>(thread->GetPeer()) in RegisterNativeMethod() 83 static_cast<JNIEnv*>(jnienv), in RegisterNativeMethod()
|
D | ti_class.cc | 925 art::JNIEnvExt* jnienv = self->GetJniEnv(); in GetClassLoaderClassDescriptors() local 927 jnienv->IsInstanceOf(loader, art::WellKnownClasses::java_lang_BootClassLoader)) { in GetClassLoaderClassDescriptors() 934 if (!jnienv->IsInstanceOf(loader, art::WellKnownClasses::java_lang_ClassLoader)) { in GetClassLoaderClassDescriptors() 936 } else if (!jnienv->IsInstanceOf(loader, in GetClassLoaderClassDescriptors()
|
/art/test/1940-ddms-ext/ |
D | ddm_ext.cc | 114 static void JNICALL PublishCB(jvmtiEnv* jvmti, JNIEnv* jnienv, jint type, jint size, jbyte* bytes) { in PublishCB() argument 116 if (JvmtiErrorToException(jnienv, jvmti, in PublishCB() 120 ScopedLocalRef<jbyteArray> res(jnienv, jnienv->NewByteArray(size)); in PublishCB() 121 jnienv->SetByteArrayRegion(res.get(), 0, size, bytes); in PublishCB() 122 jnienv->CallStaticVoidMethod(data->test_klass, data->publish_method, type, res.get()); in PublishCB()
|
/art/test/ti-stress/ |
D | stress.cc | 372 static std::string GetName(jvmtiEnv* jvmtienv, JNIEnv* jnienv, jobject obj) { in GetName() argument 373 jclass klass = jnienv->GetObjectClass(obj); in GetName() 377 DeleteLocalRef(jnienv, klass); in GetName() 383 const char* val = jnienv->GetStringUTFChars(str, nullptr); in GetName() 390 jnienv->ReleaseStringUTFChars(str, val); in GetName() 395 DeleteLocalRef(jnienv, klass); in GetName() 399 static std::string GetValOf(jvmtiEnv* env, JNIEnv* jnienv, std::string type, jvalue val) { in GetValOf() argument 404 return val.l != nullptr ? GetName(env, jnienv, val.l) : "null"; in GetValOf()
|