8244946: fatal error: memory leak: allocating without ResourceMark with -XX:+Verbose -Xlog:methodhandles

Fix crash due to a missing ResourceMark when logging methodhandles with Verbose.

Reviewed-by: dcubed, dholmes, coleenp
This commit is contained in:
Christian Hagedorn 2020-05-25 11:34:11 +02:00
parent de4b15e52e
commit 9b94b9d1a1
5 changed files with 70 additions and 32 deletions

View file

@ -774,6 +774,7 @@ void Klass::print_on(outputStream* st) const {
#define BULLET " - "
// Caller needs ResourceMark
void Klass::oop_print_on(oop obj, outputStream* st) {
// print title
st->print_cr("%s ", internal_name());