Summary
The goal of this request is to convert AbortVMOnException option from Debug to Diagnostic option so that it can be used in product builds.
Problem
AbortVMOnException and AbortVMOnExceptionMessage are debug only options. These options are useful for generating diagnostic data for investigating Java/HotSpot issues that just throw Exceptions. But the problem is that these options can not be used in Product builds of the product.
Solution
The proposal is to make these options diagnostic options so that these are available in Product builds with -XX:+UnlockDiagnosticVMOptions.
Specification
Options AbortVMOnException and AbortVMOnExceptionMessage can be used to generate hs_err log file and a core file when the exception specified with AbortVMOnException having message specified with AbortVMOnExceptionMessage occurs. Example:
$ ./[...]/jdk/bin/java -XX:+UnlockDiagnosticVMOptions -XX:AbortVMOnException=java.lang.StackOverflowError Test
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (exceptions.cpp:500), pid=166830, tid=0x00007f19e44e2640
# fatal error: Saw java.lang.StackOverflowError, aborting
- csr of
-
JDK-8342972 Make AbortVMOnException available in product builds
- Resolved