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

Emanuel Peter duke at openjdk.java.net
Mon Mar 14 17:38:49 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.

This pull request has now been integrated.

Changeset: 7833667f
Author:    Emanuel Peter <emanuel.peter at oracle.com>
Committer: Harold Seigel <hseigel at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/7833667f0e2151fc56c7c1533015f004f02f7ab2
Stats:     5 lines in 1 file changed: 4 ins; 0 del; 1 mod

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

Reviewed-by: dholmes, hseigel

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

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


More information about the hotspot-dev mailing list