< prev index next >

src/hotspot/share/runtime/thread.inline.hpp

Print this page
rev 47415 : Add Thread Local handshakes and thread local polling

*** 161,166 **** --- 161,178 ---- } #endif return _stack_guard_state == stack_guard_enabled; } + // The release make sure this store is done after storing the handshake + // operation or global state + inline void JavaThread::set_polling_page(void* poll_value) { + OrderAccess::release_store_ptr(polling_page_addr(), poll_value); + } + + // The aqcquire make sure reading of polling page is done before + // the reading the handshake operation or the global state + inline void* JavaThread::get_polling_page() { + return OrderAccess::load_ptr_acquire(polling_page_addr()); + } + #endif // SHARE_VM_RUNTIME_THREAD_INLINE_HPP
< prev index next >