/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() 371 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MonitorContendedLocking() local 372 ScopedLocalRef<jobject> mon(jnienv, AddLocalRef<jobject>(jnienv, m->GetObject())); in MonitorContendedLocking() 376 jnienv, in MonitorContendedLocking() 385 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MonitorContendedLocked() local 386 ScopedLocalRef<jobject> mon(jnienv, AddLocalRef<jobject>(jnienv, m->GetObject())); in MonitorContendedLocked() 390 jnienv, in MonitorContendedLocked() 399 art::JNIEnvExt* jnienv = self->GetJniEnv(); in ObjectWaitStart() local [all …]
|
D | events.h | 278 inline void DispatchEvent(art::Thread* thread, JNIEnv* jnienv, Args... args) const 295 JNIEnv* jnienv, 372 JNIEnv* jnienv, 385 JNIEnv* jnienv,
|
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()
|
D | ti_class.cc | 931 art::JNIEnvExt* jnienv = self->GetJniEnv(); in GetClassLoaderClassDescriptors() local 933 jnienv->IsInstanceOf(loader, art::WellKnownClasses::java_lang_BootClassLoader)) { in GetClassLoaderClassDescriptors() 940 if (!jnienv->IsInstanceOf(loader, art::WellKnownClasses::java_lang_ClassLoader)) { in GetClassLoaderClassDescriptors() 942 } else if (!jnienv->IsInstanceOf(loader, in GetClassLoaderClassDescriptors()
|
/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()
|