hotspot/src/share/vm/utilities/xmlstream.cpp
changeset 46727 6e4a84748e2c
parent 46589 f1c04490ded1
--- a/hotspot/src/share/vm/utilities/xmlstream.cpp	Thu Jul 27 15:36:15 2017 +0200
+++ b/hotspot/src/share/vm/utilities/xmlstream.cpp	Thu Jul 27 18:06:41 2017 -0400
@@ -380,7 +380,7 @@
 // ------------------------------------------------------------------
 // Output a method attribute, in the form " method='pkg/cls name sig'".
 // This is used only when there is no ciMethod available.
-void xmlStream::method(methodHandle method) {
+void xmlStream::method(const methodHandle& method) {
   assert_if_no_error(inside_attrs(), "printing attributes");
   if (method.is_null())  return;
   print_raw(" method='");
@@ -408,7 +408,7 @@
   }
 }
 
-void xmlStream::method_text(methodHandle method) {
+void xmlStream::method_text(const methodHandle& method) {
   ResourceMark rm;
   assert_if_no_error(inside_attrs(), "printing attributes");
   if (method.is_null())  return;