8167995: -Xlog:defaultmethods=debug: lengthy method descriptor triggers "StringStream is re-allocated with a different ResourceMark"
authorrprotacio
Wed, 26 Oct 2016 15:46:13 -0400
changeset 42059 36a9d4ce3951
parent 41731 721bb4b955a8
child 42060 a915170794e7
8167995: -Xlog:defaultmethods=debug: lengthy method descriptor triggers "StringStream is re-allocated with a different ResourceMark" Summary: Removed nested ResourceMark declarations Reviewed-by: dholmes, hseigel
hotspot/src/share/vm/classfile/defaultMethods.cpp
--- a/hotspot/src/share/vm/classfile/defaultMethods.cpp	Tue Oct 18 17:21:55 2016 +0000
+++ b/hotspot/src/share/vm/classfile/defaultMethods.cpp	Wed Oct 26 15:46:13 2016 -0400
@@ -77,12 +77,10 @@
 };
 
 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());
   }