Skip to content

Commit 1543482

Browse files
committedAug 4, 2023
Don't abort when JNI monitor exit throws IMSE
1 parent fd7bd90 commit 1543482

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/java.base/share/classes/java/lang/Object.java

+3
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,9 @@ private static final void jniExit(Object o) {
663663
Monitor.jniExit(Thread.currentThread(), o);
664664
}
665665
catch (Throwable t) {
666+
// IMSE is not a fatal error
667+
if (t instanceof IllegalMonitorStateException)
668+
throw t;
666669
MonitorSupport.abortException("jniExit", t);
667670
}
668671
}

0 commit comments

Comments
 (0)
Please sign in to comment.