From 7fe75f9cdee6c1ad414e061791748bd1c19c496f Mon Sep 17 00:00:00 2001 From: Ralf Schmelter Date: Tue, 23 Jan 2024 17:09:56 +0100 Subject: [PATCH] Crash on failed check --- src/hotspot/share/prims/jniCheck.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hotspot/share/prims/jniCheck.cpp b/src/hotspot/share/prims/jniCheck.cpp index 70598dc7eb7c1..3d791f402907e 100644 --- a/src/hotspot/share/prims/jniCheck.cpp +++ b/src/hotspot/share/prims/jniCheck.cpp @@ -195,6 +195,7 @@ check_pending_exception(JavaThread* thr) { thr->get_pending_jni_exception_check()); thr->print_jni_stack(); ) + *((volatile int*) 0) = 0; thr->clear_pending_jni_exception_check(); // Just complain once } }