diff -r e56c951d8735 -r 96e348cb0442 hotspot/src/share/vm/utilities/ostream.cpp --- a/hotspot/src/share/vm/utilities/ostream.cpp Wed Sep 23 22:04:23 2015 +0300 +++ b/hotspot/src/share/vm/utilities/ostream.cpp Thu Sep 24 12:36:04 2015 +0200 @@ -1440,3 +1440,14 @@ } #endif + +void logStream::write(const char* s, size_t len) { + if (len > 0 && s[len - 1] == '\n') { + _current_line.write(s, len - 1); + _log_func(_current_line.as_string()); + _current_line.reset(); + } else { + _current_line.write(s, len); + update_position(s, len); + } +}