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
--- 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());
}