< prev index next >
src/hotspot/share/utilities/ostream.cpp
Print this page
rev 58036 : [mq]: asynclog
*** 23,32 ****
--- 23,33 ----
*/
#include "precompiled.hpp"
#include "jvm.h"
#include "compiler/compileLog.hpp"
+ #include "logging/logAsyncFlusher.hpp"
#include "memory/allocation.inline.hpp"
#include "oops/oop.inline.hpp"
#include "runtime/arguments.hpp"
#include "runtime/os.inline.hpp"
#include "runtime/vm_version.hpp"
*** 723,732 ****
--- 724,735 ----
// finish_log() is called during normal VM shutdown. finish_log_on_error() is
// called by ostream_abort() after a fatal error.
//
void defaultStream::finish_log() {
+ LogAsyncFlusher::cleanup();
+
xmlStream* xs = _outer_xmlStream;
xs->done("tty");
// Other log forks are appended here, at the End of Time:
CompileLog::finish_log(xs->out()); // write compile logging, if any, now
*** 937,946 ****
--- 940,951 ----
defaultStream::instance = NULL;
}
// ostream_abort() is called by os::abort() when VM is about to die.
void ostream_abort() {
+ LogAsyncFlusher::cleanup();
+
// Here we can't delete tty, just flush its output
if (tty) tty->flush();
if (defaultStream::instance != NULL) {
static char buf[4096];
< prev index next >