RFR: 8282881: Print exception message in VM crash with -XX:AbortVMOnException

David Holmes dholmes at openjdk.java.net
Thu Mar 10 02:57:37 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.

Hi Emanuel,

This seems fine.

Thanks,
David

-------------

Marked as reviewed by dholmes (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/7762


More information about the hotspot-dev mailing list