RFR: 8267118: OutOfMemoryError cannot be caught as a Throwable [v3]
Coleen Phillimore
coleenp at openjdk.java.net
Wed Jun 2 01:47:34 UTC 2021
On Tue, 1 Jun 2021 23:26:45 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> test/hotspot/jtreg/runtime/Throwable/TestCatchThrowableOOM.java line 29:
>>
>>> 27: * @summary Test catching Throwable doesn't trigger OOME
>>> 28: * @library /test/lib
>>> 29: * @run driver TestCatchThrowableOOM
>>
>> Do you want to run this with -Xlog:exceptions=debug to verify that the debug statements print. I don't think you should verify them if you don't want to but make sure that the code is exercised going forward.
>
> The test itself doesn't need logging, the exec'd VM has all the logging enabled.
ok.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4266
More information about the hotspot-runtime-dev
mailing list