/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-inl.h | 154 void ExecuteCallback(JNIEnv* jnienv, Args... args) const { \ 156 ScopedEventDispatchEnvironment sede(jnienv); \ 157 DoExecute(jnienv, args...); \ 210 JNIEnv* jnienv, in DispatchClassFileLoadHookEvent() argument 228 jnienv, in DispatchClassFileLoadHookEvent() 242 jnienv, in DispatchClassFileLoadHookEvent() 288 inline void EventHandler::DispatchEvent(art::Thread* thread, JNIEnv* jnienv, Args... args) const { in DispatchEvent() argument 291 jnienv, in DispatchEvent() 294 ExecuteCallback<kEvent>(event, jnienv, args...); in DispatchEvent() 300 ArtJvmTiEnv* env, art::Thread* thread, JNIEnv* jnienv, Args... args) const { in DispatchEventOnEnv() argument [all …]
|
D | events.cc | 274 art::JNIEnvExt* jnienv, in RunEventCallback() argument 277 ScopedLocalRef<jthread> thread_jni(jnienv, AddLocalRef<jthread>(jnienv, self->GetPeer())); in RunEventCallback() 279 static_cast<JNIEnv*>(jnienv), in RunEventCallback() 372 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MonitorContendedLocking() local 373 ScopedLocalRef<jobject> mon(jnienv, AddLocalRef<jobject>(jnienv, m->GetObject())); in MonitorContendedLocking() 377 jnienv, in MonitorContendedLocking() 386 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MonitorContendedLocked() local 387 ScopedLocalRef<jobject> mon(jnienv, AddLocalRef<jobject>(jnienv, m->GetObject())); in MonitorContendedLocked() 391 jnienv, in MonitorContendedLocked() 400 art::JNIEnvExt* jnienv = self->GetJniEnv(); in ObjectWaitStart() local [all …]
|
D | events.h | 279 inline void DispatchEvent(art::Thread* thread, JNIEnv* jnienv, Args... args) const 296 JNIEnv* jnienv, 373 JNIEnv* jnienv, 386 JNIEnv* jnienv,
|
D | ti_class.cc | 930 art::JNIEnvExt* jnienv = self->GetJniEnv(); in GetClassLoaderClassDescriptors() local 932 jnienv->IsInstanceOf(loader, art::WellKnownClasses::java_lang_BootClassLoader)) { in GetClassLoaderClassDescriptors() 939 if (!jnienv->IsInstanceOf(loader, art::WellKnownClasses::java_lang_ClassLoader)) { in GetClassLoaderClassDescriptors() 941 } else if (!jnienv->IsInstanceOf(loader, in GetClassLoaderClassDescriptors()
|
D | ti_method.cc | 93 art::JNIEnvExt* jnienv = thread->GetJniEnv(); in RegisterNativeMethod() local 95 jnienv, PhaseUtil::IsLivePhase() ? jnienv->AddLocalReference<jthread>(thread->GetPeer()) in RegisterNativeMethod() 101 static_cast<JNIEnv*>(jnienv), in RegisterNativeMethod()
|
/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()
|