src/hotspot/share/runtime/thread.inline.hpp
changeset 50921 7f462e8383f6
parent 50429 83aec1d357d4
child 52673 61b3b58a1d1d
equal deleted inserted replaced
50920:d9160a3c97c1 50921:7f462e8383f6
   168   return _stack_guard_state == stack_guard_enabled;
   168   return _stack_guard_state == stack_guard_enabled;
   169 }
   169 }
   170 
   170 
   171 // The release make sure this store is done after storing the handshake
   171 // The release make sure this store is done after storing the handshake
   172 // operation or global state
   172 // operation or global state
       
   173 inline void JavaThread::set_polling_page_release(void* poll_value) {
       
   174   OrderAccess::release_store(polling_page_addr(), poll_value);
       
   175 }
       
   176 
       
   177 // Caller is responsible for using a memory barrier if needed.
   173 inline void JavaThread::set_polling_page(void* poll_value) {
   178 inline void JavaThread::set_polling_page(void* poll_value) {
   174   OrderAccess::release_store(polling_page_addr(), poll_value);
   179   *polling_page_addr() = poll_value;
   175 }
   180 }
   176 
   181 
   177 // The aqcquire make sure reading of polling page is done before
   182 // The aqcquire make sure reading of polling page is done before
   178 // the reading the handshake operation or the global state
   183 // the reading the handshake operation or the global state
   179 inline volatile void* JavaThread::get_polling_page() {
   184 inline volatile void* JavaThread::get_polling_page() {