src/share/vm/runtime/timer.cpp

Print this page
rev 3856 : 8004170: G1: Verbose GC output is not getting flushed to log file using JDK 8
Summary: Add flushes to G1CollectedHeap::log_gc_footer() and TraceCPUTime destructor.
Reviewed-by:

@@ -211,7 +211,8 @@
       _logfile->print("[Error in TraceCPUTime]");
     }
      if (_print_cr) {
       _logfile->print_cr("");
     }
+    _logfile->flush();
   }
 }