Merge
authorcoleenp
Mon, 26 Oct 2015 18:27:33 +0100
changeset 33601 9d0838128dd9
parent 33599 69416bbe5e84 (current diff)
parent 33600 922600753f71 (diff)
child 33603 450d454670a7
Merge
--- a/hotspot/src/share/vm/prims/jni.cpp	Thu Oct 22 11:33:51 2015 -0400
+++ b/hotspot/src/share/vm/prims/jni.cpp	Mon Oct 26 18:27:33 2015 +0100
@@ -4061,6 +4061,10 @@
     OrderAccess::release_store(&vm_created, 0);
   }
 
+  // Flush stdout and stderr before exit.
+  fflush(stdout);
+  fflush(stderr);
+
   return result;
 
 }
--- a/hotspot/src/share/vm/runtime/java.cpp	Thu Oct 22 11:33:51 2015 -0400
+++ b/hotspot/src/share/vm/runtime/java.cpp	Mon Oct 26 18:27:33 2015 +0100
@@ -575,6 +575,11 @@
 void vm_abort(bool dump_core) {
   vm_perform_shutdown_actions();
   os::wait_for_keypress_at_exit();
+
+  // Flush stdout and stderr before abort.
+  fflush(stdout);
+  fflush(stderr);
+
   os::abort(dump_core);
   ShouldNotReachHere();
 }