hotspot/src/share/vm/utilities/xmlstream.cpp
changeset 46727 6e4a84748e2c
parent 46589 f1c04490ded1
equal deleted inserted replaced
46726:7801367e3cc9 46727:6e4a84748e2c
   378 
   378 
   379 
   379 
   380 // ------------------------------------------------------------------
   380 // ------------------------------------------------------------------
   381 // Output a method attribute, in the form " method='pkg/cls name sig'".
   381 // Output a method attribute, in the form " method='pkg/cls name sig'".
   382 // This is used only when there is no ciMethod available.
   382 // This is used only when there is no ciMethod available.
   383 void xmlStream::method(methodHandle method) {
   383 void xmlStream::method(const methodHandle& method) {
   384   assert_if_no_error(inside_attrs(), "printing attributes");
   384   assert_if_no_error(inside_attrs(), "printing attributes");
   385   if (method.is_null())  return;
   385   if (method.is_null())  return;
   386   print_raw(" method='");
   386   print_raw(" method='");
   387   method_text(method);
   387   method_text(method);
   388   print("' bytes='%d'", method->code_size());
   388   print("' bytes='%d'", method->code_size());
   406     cnt = mdo->overflow_recompile_count();
   406     cnt = mdo->overflow_recompile_count();
   407     if (cnt != 0)  print(" overflow_recompiles='%d'", cnt);
   407     if (cnt != 0)  print(" overflow_recompiles='%d'", cnt);
   408   }
   408   }
   409 }
   409 }
   410 
   410 
   411 void xmlStream::method_text(methodHandle method) {
   411 void xmlStream::method_text(const methodHandle& method) {
   412   ResourceMark rm;
   412   ResourceMark rm;
   413   assert_if_no_error(inside_attrs(), "printing attributes");
   413   assert_if_no_error(inside_attrs(), "printing attributes");
   414   if (method.is_null())  return;
   414   if (method.is_null())  return;
   415   text()->print("%s", method->method_holder()->external_name());
   415   text()->print("%s", method->method_holder()->external_name());
   416   print_raw(" ");  // " " is easier for tools to parse than "::"
   416   print_raw(" ");  // " " is easier for tools to parse than "::"