Skip to content

Commit 512b2b4

Browse files
Sonia Zaldana Calleststuefe
authored andcommitted
8330420: Inverted use of DisplayVMOutputToStderr in ostream_exit
Reviewed-by: jsjolen, stuefe
1 parent 8e72d7c commit 512b2b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/utilities/ostream.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ void ostream_exit() {
979979
ClassListWriter::delete_classlist();
980980
// Make sure tty works after VM exit by assigning an always-on functioning fdStream.
981981
outputStream* tmp = tty;
982-
tty = DisplayVMOutputToStderr ? fdStream::stdout_stream() : fdStream::stderr_stream();
982+
tty = DisplayVMOutputToStderr ? fdStream::stderr_stream() : fdStream::stdout_stream();
983983
if (tmp != &tty_preinit_stream && tmp != defaultStream::instance) {
984984
delete tmp;
985985
}

0 commit comments

Comments
 (0)