RFR: 8267118: OutOfMemoryError cannot be caught as a Throwable [v3]

David Holmes dholmes at openjdk.java.net
Tue Jun 1 23:29:29 UTC 2021


On Tue, 1 Jun 2021 23:13:25 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> David Holmes has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Reworked the new logging to seperate Info and Debug levels to reduce verbosity, per
>>   feedback from @coleenp @iklam
>
> 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.

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

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


More information about the hotspot-runtime-dev mailing list