Skip to content

Commit c49fb4f

Browse files
committed
8320403: C2: PrintIdeal is no longer dumped to tty when xtty is set
Reviewed-by: kvn, thartmann
1 parent 06d957f commit c49fb4f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/hotspot/share/opto/compile.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -590,10 +590,12 @@ void Compile::print_ideal_ir(const char* phase_name) {
590590
compile_id(),
591591
is_osr_compilation() ? " compile_kind='osr'" : "",
592592
phase_name);
593-
xtty->print("%s", ss.as_string()); // print to tty would use xml escape encoding
593+
}
594+
595+
tty->print("%s", ss.as_string());
596+
597+
if (xtty != nullptr) {
594598
xtty->tail("ideal");
595-
} else {
596-
tty->print("%s", ss.as_string());
597599
}
598600
}
599601
#endif

0 commit comments

Comments
 (0)