src/hotspot/share/runtime/thread.inline.hpp
changeset 47881 0ce0ac68ace7
parent 47216 71c04702a3d5
child 48005 9fd89aabb6cd
equal deleted inserted replaced
47824:cf127be65014 47881:0ce0ac68ace7
   161   }
   161   }
   162 #endif
   162 #endif
   163   return _stack_guard_state == stack_guard_enabled;
   163   return _stack_guard_state == stack_guard_enabled;
   164 }
   164 }
   165 
   165 
       
   166 // The release make sure this store is done after storing the handshake
       
   167 // operation or global state
       
   168 inline void JavaThread::set_polling_page(void* poll_value) {
       
   169   OrderAccess::release_store(polling_page_addr(), poll_value);
       
   170 }
       
   171 
       
   172 // The aqcquire make sure reading of polling page is done before
       
   173 // the reading the handshake operation or the global state
       
   174 inline volatile void* JavaThread::get_polling_page() {
       
   175   return OrderAccess::load_acquire(polling_page_addr());
       
   176 }
       
   177 
   166 #endif // SHARE_VM_RUNTIME_THREAD_INLINE_HPP
   178 #endif // SHARE_VM_RUNTIME_THREAD_INLINE_HPP