changeset 12246:46c8f9b67187

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
author rprotacio
date Wed, 26 Oct 2016 15:46:13 -0400
parents 80e226479802
children 9ce79aaf2e0b
files src/share/vm/classfile/defaultMethods.cpp
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/classfile/defaultMethods.cpp	Tue Oct 18 17:21:55 2016 +0000
+++ b/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());
   }