Lines Matching refs:jnienv
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()
130 JNIEnv* jnienv, in singleStepCB() argument
135 if (JvmtiErrorToException(jnienv, jvmti, in singleStepCB()
139 if (IsInCallback(jnienv, jvmti, thread)) { in singleStepCB()
142 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in singleStepCB()
147 ScopedCallbackState st(jnienv, jvmti, thread); in singleStepCB()
148 jobject method_arg = GetJavaMethod(jvmti, jnienv, method); in singleStepCB()
149 jnienv->CallStaticVoidMethod(klass.get(), in singleStepCB()
154 jnienv->DeleteLocalRef(method_arg); in singleStepCB()
158 JNIEnv* jnienv, in fieldAccessCB() argument
166 if (JvmtiErrorToException(jnienv, jvmti, in fieldAccessCB()
170 if (IsInCallback(jnienv, jvmti, thr)) { in fieldAccessCB()
174 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in fieldAccessCB()
179 ScopedCallbackState st(jnienv, jvmti, thr); in fieldAccessCB()
180 jobject method_arg = GetJavaMethod(jvmti, jnienv, method); in fieldAccessCB()
181 jobject field_arg = GetJavaField(jvmti, jnienv, field_klass, field); in fieldAccessCB()
182 jnienv->CallStaticVoidMethod(klass.get(), in fieldAccessCB()
189 jnienv->DeleteLocalRef(method_arg); in fieldAccessCB()
190 jnienv->DeleteLocalRef(field_arg); in fieldAccessCB()
194 JNIEnv* jnienv, in fieldModificationCB() argument
204 if (JvmtiErrorToException(jnienv, jvmti, in fieldModificationCB()
208 if (IsInCallback(jnienv, jvmti, thr)) { in fieldModificationCB()
212 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in fieldModificationCB()
217 ScopedCallbackState st(jnienv, jvmti, thr); in fieldModificationCB()
218 jobject method_arg = GetJavaMethod(jvmti, jnienv, method); in fieldModificationCB()
219 jobject field_arg = GetJavaField(jvmti, jnienv, field_klass, field); in fieldModificationCB()
220 jobject value = GetJavaValueByType(jnienv, type_char, new_value); in fieldModificationCB()
221 if (jnienv->ExceptionCheck()) { in fieldModificationCB()
222 jnienv->DeleteLocalRef(method_arg); in fieldModificationCB()
223 jnienv->DeleteLocalRef(field_arg); in fieldModificationCB()
226 jnienv->CallStaticVoidMethod(klass.get(), in fieldModificationCB()
234 jnienv->DeleteLocalRef(method_arg); in fieldModificationCB()
235 jnienv->DeleteLocalRef(field_arg); in fieldModificationCB()
239 JNIEnv* jnienv, in methodExitCB() argument
245 if (JvmtiErrorToException(jnienv, jvmti, in methodExitCB()
251 IsInCallback(jnienv, jvmti, thr)) { in methodExitCB()
255 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in methodExitCB()
260 ScopedCallbackState st(jnienv, jvmti, thr); in methodExitCB()
261 jobject method_arg = GetJavaMethod(jvmti, jnienv, method); in methodExitCB()
263 was_popped_by_exception ? nullptr : GetJavaValue(jvmti, jnienv, method, return_value); in methodExitCB()
264 if (jnienv->ExceptionCheck()) { in methodExitCB()
267 jnienv->CallStaticVoidMethod(klass.get(), in methodExitCB()
272 jnienv->DeleteLocalRef(method_arg); in methodExitCB()
276 JNIEnv* jnienv, in methodEntryCB() argument
280 if (JvmtiErrorToException(jnienv, jvmti, in methodEntryCB()
287 IsInCallback(jnienv, jvmti, thr)) { in methodEntryCB()
291 ScopedLocalRef<jclass> klass(jnienv, data->GetTestClass(jvmti, jnienv)); in methodEntryCB()
295 ScopedCallbackState st(jnienv, jvmti, thr); in methodEntryCB()
296 jobject method_arg = GetJavaMethod(jvmti, jnienv, method); in methodEntryCB()
297 if (jnienv->ExceptionCheck()) { in methodEntryCB()
300 jnienv->CallStaticVoidMethod(klass.get(), data->enter_method, method_arg); in methodEntryCB()
301 jnienv->DeleteLocalRef(method_arg); in methodEntryCB()
305 JNIEnv* jnienv, in classPrepareCB() argument
309 if (JvmtiErrorToException(jnienv, jvmti, in classPrepareCB()
316 if (JvmtiErrorToException(jnienv, jvmti, jvmti->GetClassFields(klass, &nfields, &fields))) { in classPrepareCB()