Mercurial > hg > graal-jvmci-8
diff src/share/vm/compiler/compileBroker.cpp @ 20679:ecccc23346fe
8007993: hotspot.log w/ enabled LogCompilation can be an invalid XML
Summary: Open compilation log files in write-mode and close before deletion attempt.
Reviewed-by: vlivanov
author | thartmann |
---|---|
date | Wed, 26 Nov 2014 08:06:58 +0100 |
parents | 28051f14c328 |
children | 7848fc12602b |
line wrap: on
line diff
--- a/src/share/vm/compiler/compileBroker.cpp Mon Dec 01 09:38:52 2014 -0500 +++ b/src/share/vm/compiler/compileBroker.cpp Wed Nov 26 08:06:58 2014 +0100 @@ -1845,7 +1845,7 @@ os::file_separator(), thread_id, os::current_process_id()); } - fp = fopen(file_name, "at"); + fp = fopen(file_name, "wt"); if (fp != NULL) { if (LogCompilation && Verbose) { tty->print_cr("Opening compilation log %s", file_name);