RFR: 8267118: OutOfMemoryError cannot be caught as a Throwable [v2]
Ioi Lam
iklam at openjdk.java.net
Tue Jun 1 01:10:28 UTC 2021
On Mon, 31 May 2021 22:32:08 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
>> David Holmes has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:
>>
>> - Merge branch 'master' into 8267118-oome
>> - 8267118: OutOfMemoryError cannot be caught as a Throwable
>
> src/hotspot/share/oops/method.cpp line 232:
>
>> 230: if (do_logging) {
>> 231: ResourceMark rm(THREAD);
>> 232: log_info(exceptions)("Looking for catch handler for exception of type \"%s\" in method \"%s\"",
>
> I think these should be log_debug, since this is useful for debugging but many people outside of hotspot engineers use -Xlog:exceptions.
If the exception is not immediately caught, will this print a line for every method on the call stack that has a catch block? If so, that may be too verbose.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4266
More information about the hotspot-runtime-dev
mailing list