Skip to content

Commit

Permalink
8320403: C2: PrintIdeal is no longer dumped to tty when xtty is set
Browse files Browse the repository at this point in the history
  • Loading branch information
chhagedorn committed Nov 22, 2023
1 parent fbe1937 commit 1bb54cb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/hotspot/share/opto/compile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,10 +589,12 @@ void Compile::print_ideal_ir(const char* phase_name) {
compile_id(),
is_osr_compilation() ? " compile_kind='osr'" : "",
phase_name);
xtty->print("%s", ss.as_string()); // print to tty would use xml escape encoding
}

tty->print("%s", ss.as_string());

if (xtty != nullptr) {
xtty->tail("ideal");
} else {
tty->print("%s", ss.as_string());
}
}
#endif
Expand Down

0 comments on commit 1bb54cb

Please sign in to comment.