Skip to content

Commit

Permalink
suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
chhagedorn committed Sep 4, 2024
1 parent 24cefa3 commit dc0f25a
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/hotspot/share/opto/compile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5197,11 +5197,17 @@ void Compile::print_method(CompilerPhaseType cpt, int level, Node* n) {
}
if (n != nullptr) {
ss.print(": %d %s", n->_idx, NodeClassNames[n->Opcode()]);
if (n->is_CallJava()) {
CallJavaNode* call = n->as_CallJava();
if (call->method() != nullptr) {
ss.print(" -");
call->method()->print_short_name(&ss);
if (n->is_Call()) {
CallNode* call = n->as_Call();
if (call->_name != nullptr) {
// E.g. uncommon traps etc.
ss.print(" - %s", call->_name);
} else if (call->is_CallJava()) {
CallJavaNode* call_java = call->as_CallJava();
if (call_java->method() != nullptr) {
ss.print(" -");
call_java->method()->print_short_name(&ss);
}
}
}
}
Expand Down

0 comments on commit dc0f25a

Please sign in to comment.