-
Bug
-
Resolution: Fixed
-
P4
-
8, 11, 12, 13, 14, 15, 16, 17, 21
-
b03
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8326046 | 21.0.4-oracle | Tobias Hartmann | P4 | Resolved | Fixed | b01 |
JDK-8322755 | 21.0.3 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
$ java -XX:AbortVMOnException=MyException Test.java
$ java -XX:AbortVMOnException=MyException -XX:-TieredCompilation Test.java
successfully results in the expected VM assertion failure:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/christian/jdk/open/src/hotspot/share/utilities/exceptions.cpp:544), pid=116514, tid=116515
# fatal error: Saw MyException, aborting
#
# JRE version: Java(TM) SE Runtime Environment (17.0) (slowdebug build 17-internal+0-LTS-2021-03-25-1609321.christian...)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (slowdebug 17-internal+0-LTS-2021-03-25-1609321.christian..., mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x8f6906] Exceptions::debug_check_abort(char const*, char const*)+0x8a
However, running it with -Xcomp and C1 only (TieredStopAtLevel) will not abort the VM:
$ java -XX:AbortVMOnException=MyException -Xcomp Test.java
$ java -XX:AbortVMOnException=MyException -Xcomp -XX:TieredStopAtLevel=1,2,3 Test.java
Exception in thread "main" MyException
at Test.foo(Test.java:7)
at Test.main(Test.java:3)
- backported by
-
JDK-8322755 C1: -XX:AbortVMOnException does not work if all methods in the call stack are compiled with C1 and there are no exception handlers
- Resolved
-
JDK-8326046 C1: -XX:AbortVMOnException does not work if all methods in the call stack are compiled with C1 and there are no exception handlers
- Resolved
- relates to
-
JDK-8310919 runtime/ErrorHandling/TestAbortVmOnException.java times out due to core dumps taking a long time on OSX
- Resolved
- links to
-
Commit openjdk/jdk21u-dev/98c94fd1
-
Commit openjdk/jdk/826dcb54
-
Review openjdk/jdk21u-dev/95
-
Review openjdk/jdk/14240