< prev index next >

src/hotspot/share/runtime/vm_operations.hpp

Print this page
rev 49294 : imported patch 8199813

@@ -457,18 +457,20 @@
 
 class VM_Exit: public VM_Operation {
  private:
   int  _exit_code;
   static volatile bool _vm_exited;
-  static Thread * _shutdown_thread;
+  static Thread * volatile _shutdown_thread;
   static void wait_if_vm_exited();
  public:
   VM_Exit(int exit_code) {
     _exit_code = exit_code;
   }
   static int wait_for_threads_in_native_to_block();
   static int set_vm_exited();
+  static void set_shutdown_thread(Thread *t)   { _shutdown_thread = t; }
+  static Thread * shutdown_thread()            { return _shutdown_thread; }
   static bool vm_exited()                      { return _vm_exited; }
   static void block_if_vm_exited() {
     if (_vm_exited) {
       wait_if_vm_exited();
     }
< prev index next >