Home
last modified time | relevance | path

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

/art/runtime/openjdkjvmti/
Devents-inl.h121 JNIEnv* jnienv, in DispatchClassFileLoadHookEvent() argument
141 ScopedLocalRef<jthrowable> thr(jnienv, jnienv->ExceptionOccurred()); in DispatchClassFileLoadHookEvent()
142 jnienv->ExceptionClear(); in DispatchClassFileLoadHookEvent()
147 jnienv, in DispatchClassFileLoadHookEvent()
156 if (thr.get() != nullptr && !jnienv->ExceptionCheck()) { in DispatchClassFileLoadHookEvent()
157 jnienv->Throw(thr.get()); in DispatchClassFileLoadHookEvent()
197 inline void EventHandler::DispatchEvent(art::Thread* thread, JNIEnv* jnienv, Args... args) const { in DispatchEvent() argument
200 ScopedLocalRef<jthrowable> thr(jnienv, jnienv->ExceptionOccurred()); in DispatchEvent()
201 jnienv->ExceptionClear(); in DispatchEvent()
202 DispatchEvent<kEvent, JNIEnv*, Args...>(env, thread, jnienv, args...); in DispatchEvent()
[all …]
Devents.cc314 void RunEventCallback(art::Thread* self, art::JNIEnvExt* jnienv, Args... args) in RunEventCallback() argument
316 ScopedLocalRef<jthread> thread_jni(jnienv, AddLocalRef<jthread>(jnienv, self->GetPeer())); in RunEventCallback()
318 jnienv->PushFrame(100); in RunEventCallback()
323 static_cast<JNIEnv*>(jnienv), in RunEventCallback()
327 jnienv->PopFrame(); in RunEventCallback()
338 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MethodEntered() local
340 jnienv, in MethodEntered()
358 art::JNIEnvExt* jnienv = self->GetJniEnv(); in MethodExited() local
359 ScopedLocalRef<jobject> return_jobj(jnienv, AddLocalRef<jobject>(jnienv, return_value.Get())); in MethodExited()
363 jnienv, in MethodExited()
[all …]
Dti_method.cc58 art::JNIEnvExt* jnienv = thread->GetJniEnv(); in RegisterNativeMethod() local
60 jnienv, PhaseUtil::IsLivePhase() ? jnienv->AddLocalReference<jthread>(thread->GetPeer()) in RegisterNativeMethod()
65 static_cast<JNIEnv*>(jnienv), in RegisterNativeMethod()
Devents.h172 void DispatchEvent(art::Thread* thread, JNIEnv* jnienv, Args... args) const;
202 JNIEnv* jnienv,
/art/test/ti-agent/
Dtrace_helper.cc43 JNIEnv* jnienv, in singleStepCB() argument
48 if (JvmtiErrorToException(jnienv, jvmti, in singleStepCB()
57 jobject method_arg = GetJavaMethod(jvmti, jnienv, method); in singleStepCB()
58 jnienv->CallStaticVoidMethod(data->test_klass, in singleStepCB()
63 jnienv->DeleteLocalRef(method_arg); in singleStepCB()
68 JNIEnv* jnienv, in fieldAccessCB() argument
76 if (JvmtiErrorToException(jnienv, jvmti, in fieldAccessCB()
86 jobject method_arg = GetJavaMethod(jvmti, jnienv, method); in fieldAccessCB()
87 jobject field_arg = GetJavaField(jvmti, jnienv, field_klass, field); in fieldAccessCB()
88 jnienv->CallStaticVoidMethod(data->test_klass, in fieldAccessCB()
[all …]
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/test/ti-stress/
Dstress.cc366 static std::string GetName(jvmtiEnv* jvmtienv, JNIEnv* jnienv, jobject obj) { in GetName() argument
367 jclass klass = jnienv->GetObjectClass(obj); in GetName()
371 jnienv->DeleteLocalRef(klass); in GetName()
377 const char* val = jnienv->GetStringUTFChars(str, nullptr); in GetName()
384 jnienv->ReleaseStringUTFChars(str, val); in GetName()
389 jnienv->DeleteLocalRef(klass); in GetName()
393 static std::string GetValOf(jvmtiEnv* env, JNIEnv* jnienv, std::string type, jvalue val) { in GetValOf() argument
398 return val.l != nullptr ? GetName(env, jnienv, val.l) : "null"; in GetValOf()