RFR: 8324861: Exceptions::wrap_dynamic_exception() doesn't have ResourceMark

David Holmes dholmes at openjdk.org
Tue Jan 30 07:35:40 UTC 2024


On Mon, 29 Jan 2024 18:34:02 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

> The issue is reproduced with 
> make -- run-test JTREG_VERBOSE=all JTREG_RETAIN=all  TEST=runtime/ConstantPool/TestMethodHandleConstant.java  TEST_VM_OPTS="-Xlog:all=trace:file=vm.%p.log"
> 
> verified that it doesn't crash anymore. Also, run tier1 for sanity testing.

Okay. Thanks

Though I think the real bug is in `klass.cpp`:

// Caller needs ResourceMark
void Klass::oop_print_on(oop obj, outputStream* st) {

I think the RM should be there, not in the caller.

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

Marked as reviewed by dholmes (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/17620#pullrequestreview-1850401159


More information about the hotspot-dev mailing list