RFR: 8282881: Print exception message in VM crash with -XX:AbortVMOnException
Emanuel Peter
duke at openjdk.java.net
Mon Mar 14 16:25:45 UTC 2022
On Mon, 14 Mar 2022 15:21:31 GMT, Harold Seigel <hseigel at openjdk.org> 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
Thanks @hseigel and @dholmes-ora for the reviews!
-------------
PR: https://git.openjdk.java.net/jdk/pull/7762
More information about the hotspot-dev
mailing list