changeset 9608:2c30539cb670

Merge
author coleenp
date Mon, 26 Oct 2015 18:27:33 +0100
parents 834a43b2db17 0aa8adafb982
children 78fcf4f320c2
files
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/prims/jni.cpp	Thu Oct 22 11:33:51 2015 -0400
+++ b/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/src/share/vm/runtime/java.cpp	Thu Oct 22 11:33:51 2015 -0400
+++ b/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();
 }