hotspot/src/share/vm/runtime/java.cpp
changeset 26682 f339669ba825
parent 26295 6a9d9192f215
child 26913 9ad70cd32368
--- a/hotspot/src/share/vm/runtime/java.cpp	Wed Sep 10 07:06:37 2014 -0700
+++ b/hotspot/src/share/vm/runtime/java.cpp	Wed Sep 10 09:52:41 2014 -0700
@@ -430,8 +430,6 @@
   }
 }
 
-jint volatile vm_getting_terminated = 0;
-
 // Note: before_exit() can be executed only once, if more than one threads
 //       are trying to shutdown the VM at the same time, only one thread
 //       can run before_exit() and all other threads must wait.
@@ -462,8 +460,6 @@
     }
   }
 
-  OrderAccess::release_store(&vm_getting_terminated, 1);
-
   // The only difference between this and Win32's _onexit procs is that
   // this version is invoked before any threads get killed.
   ExitProc* current = exit_procs;
@@ -587,7 +583,7 @@
 void vm_direct_exit(int code) {
   notify_vm_shutdown();
   os::wait_for_keypress_at_exit();
-  ::exit(code);
+  os::exit(code);
 }
 
 void vm_perform_shutdown_actions() {