< prev index next >

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

Print this page
*** 148,11 ***
  inline JavaThread::NoAsyncExceptionDeliveryMark::~NoAsyncExceptionDeliveryMark() {
    _target->clear_suspend_flag(_async_delivery_disabled);
  }
  
  inline JavaThreadState JavaThread::thread_state() const    {
! #if defined(PPC64) || defined (AARCH64)
    // 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;
--- 148,11 ---
  inline JavaThread::NoAsyncExceptionDeliveryMark::~NoAsyncExceptionDeliveryMark() {
    _target->clear_suspend_flag(_async_delivery_disabled);
  }
  
  inline JavaThreadState JavaThread::thread_state() const    {
! #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 >