8371749: New test serviceability/jvmti/events/VMDeath/AllocatingInVMDeath/TestAllocatingInVMDeath.java fails with -Xcheck:jni

Reviewed-by: sspitsyn, amenkov, cjplummer
This commit is contained in:
Leonid Mesnik 2025-11-13 23:54:07 +00:00
parent 6322aaba63
commit 155d7df555

View File

@ -37,6 +37,10 @@ cbVMDeath(jvmtiEnv* jvmti, JNIEnv* jni) {
fatal(jni, "Can't find upCall method.");
}
jni->CallStaticObjectMethod(clz, mid);
if (jni->ExceptionOccurred()) {
jni->ExceptionDescribe();
fatal(jni, "cbVMDeath: unexpected exception occurred in Java upcall method.");
}
}
JNIEXPORT jint JNICALL