< prev index next >

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

Print this page
@@ -137,11 +137,11 @@
    set_suspend_flag(_has_async_exception);
    DEBUG_ONLY(_is_unsafe_access_error = true);
  }
  
  inline JavaThreadState JavaThread::thread_state() const    {
- #if defined(PPC64) || defined (AARCH64)
+ #if defined(PPC64) || defined (AARCH64) || defined(RISCV64)
    // Use membars when accessing volatile _thread_state. See
    // Threads::create_vm() for size checks.
    return (JavaThreadState) Atomic::load_acquire((volatile jint*)&_thread_state);
  #else
    return _thread_state;
< prev index next >