hotspot/src/share/vm/runtime/java.cpp
changeset 8476 7e34c2d4cf9b
parent 8107 78e5bd944384
child 8478 d89e2f60ba40
--- a/hotspot/src/share/vm/runtime/java.cpp	Sat Feb 26 13:33:23 2011 -0500
+++ b/hotspot/src/share/vm/runtime/java.cpp	Mon Feb 28 14:19:52 2011 +0100
@@ -551,6 +551,7 @@
 
 void vm_direct_exit(int code) {
   notify_vm_shutdown();
+  os::wait_for_keypress_at_exit();
   ::exit(code);
 }
 
@@ -577,11 +578,13 @@
 void vm_shutdown()
 {
   vm_perform_shutdown_actions();
+  os::wait_for_keypress_at_exit();
   os::shutdown();
 }
 
 void vm_abort(bool dump_core) {
   vm_perform_shutdown_actions();
+  os::wait_for_keypress_at_exit();
   os::abort(dump_core);
   ShouldNotReachHere();
 }