< prev index next >
src/hotspot/share/utilities/xmlstream.cpp
Print this page
*** 383,395 ****
// ------------------------------------------------------------------
// 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(const methodHandle& method) {
assert_if_no_error(inside_attrs(), "printing attributes");
! if (method.is_null()) return;
print_raw(" method='");
method_text(method);
print("' bytes='%d'", method->code_size());
print(" count='%d'", method->invocation_count());
int bec = method->backedge_count();
--- 383,395 ----
// ------------------------------------------------------------------
// 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(Method* method) {
assert_if_no_error(inside_attrs(), "printing attributes");
! if (method == NULL) return;
print_raw(" method='");
method_text(method);
print("' bytes='%d'", method->code_size());
print(" count='%d'", method->invocation_count());
int bec = method->backedge_count();
*** 411,424 ****
cnt = mdo->overflow_recompile_count();
if (cnt != 0) print(" overflow_recompiles='%d'", cnt);
}
}
! void xmlStream::method_text(const methodHandle& method) {
ResourceMark rm;
assert_if_no_error(inside_attrs(), "printing attributes");
! if (method.is_null()) return;
text()->print("%s", method->method_holder()->external_name());
print_raw(" "); // " " is easier for tools to parse than "::"
method->name()->print_symbol_on(text());
print_raw(" "); // separator
method->signature()->print_symbol_on(text());
--- 411,424 ----
cnt = mdo->overflow_recompile_count();
if (cnt != 0) print(" overflow_recompiles='%d'", cnt);
}
}
! void xmlStream::method_text(Method* method) {
ResourceMark rm;
assert_if_no_error(inside_attrs(), "printing attributes");
! if (method == NULL) return;
text()->print("%s", method->method_holder()->external_name());
print_raw(" "); // " " is easier for tools to parse than "::"
method->name()->print_symbol_on(text());
print_raw(" "); // separator
method->signature()->print_symbol_on(text());
< prev index next >