equal
deleted
inserted
replaced
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 |