From 420a682afacbd9793b74ed168b4e4249d954fdcd Mon Sep 17 00:00:00 2001 From: Rachel Protacio Date: Wed, 26 Oct 2016 15:46:13 -0400 Subject: [PATCH] 8167995: -Xlog:defaultmethods=debug: lengthy method descriptor triggers "StringStream is re-allocated with a different ResourceMark" Removed nested ResourceMark declarations Reviewed-by: dholmes, hseigel --- hotspot/src/share/vm/classfile/defaultMethods.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/hotspot/src/share/vm/classfile/defaultMethods.cpp b/hotspot/src/share/vm/classfile/defaultMethods.cpp index b9e6afcaf01..e609a66498d 100644 --- a/hotspot/src/share/vm/classfile/defaultMethods.cpp +++ b/hotspot/src/share/vm/classfile/defaultMethods.cpp @@ -77,12 +77,10 @@ class PseudoScope : public ResourceObj { }; static void print_slot(outputStream* str, Symbol* name, Symbol* signature) { - ResourceMark rm; str->print("%s%s", name->as_C_string(), signature->as_C_string()); } static void print_method(outputStream* str, Method* mo, bool with_class=true) { - ResourceMark rm; if (with_class) { str->print("%s.", mo->klass_name()->as_C_string()); }