Home
last modified time | relevance | path

Searched refs:jnienv (Results 1 – 11 of 11) sorted by relevance

/art/test/ti-agent/
Dtrace_helper.cc57 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 …]
Dexceptions_helper.cc38 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 …]
Dmonitors_helper.cc82 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 …]
Dframe_pop_helper.cc35 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()
Dbreakpoint_helper.cc38 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/
Devents-inl.h154 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 …]
Devents.cc274 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 …]
Devents.h278 inline void DispatchEvent(art::Thread* thread, JNIEnv* jnienv, Args... args) const
295 JNIEnv* jnienv,
372 JNIEnv* jnienv,
385 JNIEnv* jnienv,
Dti_method.cc93 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()
Dti_class.cc930 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()
/art/test/ti-stress/
Dstress.cc372 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()