RFR: 8282881: Print exception message in VM crash with -XX:AbortVMOnException
Harold Seigel
hseigel at openjdk.java.net
Mon Mar 14 15:24:45 UTC 2022
On Wed, 9 Mar 2022 16:04:47 GMT, Emanuel Peter <duke at openjdk.java.net> wrote:
> In `Exceptions::debug_check_abort`, we crash the VM if the exception matches with `-XX:AbortVMOnException`. For example `-XX:AbortVMOnException=java.lang.RuntimeEx`.
>
> Currently, in the VM crash description, we only print the exception name (`value_string`), and not its message (`message`). For completeness and consistency, we should also print the exception message.
>
> I tested it with these two exceptions, the first results in `message` being `NULL`:
> `throw new RuntimeException();`
> `throw new RuntimeException("some message");`
>
> Running tests to make sure nothing else broke.
Looks good!
Thanks, Harold
-------------
Marked as reviewed by hseigel (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/7762
More information about the hotspot-dev
mailing list