src/hotspot/share/runtime/threadSMR.inline.hpp
changeset 59247 56bf71d64d51
parent 54623 1126f0607c70
child 59249 29b0d0b61615
equal deleted inserted replaced
59246:fcad92f425c5 59247:56bf71d64d51
    76     }
    76     }
    77   }
    77   }
    78 }
    78 }
    79 
    79 
    80 inline ThreadsList* ThreadsSMRSupport::get_java_thread_list() {
    80 inline ThreadsList* ThreadsSMRSupport::get_java_thread_list() {
    81   return (ThreadsList*)OrderAccess::load_acquire(&_java_thread_list);
    81   return (ThreadsList*)Atomic::load_acquire(&_java_thread_list);
    82 }
    82 }
    83 
    83 
    84 inline bool ThreadsSMRSupport::is_a_protected_JavaThread_with_lock(JavaThread *thread) {
    84 inline bool ThreadsSMRSupport::is_a_protected_JavaThread_with_lock(JavaThread *thread) {
    85   MutexLocker ml(Threads_lock->owned_by_self() ? NULL : Threads_lock);
    85   MutexLocker ml(Threads_lock->owned_by_self() ? NULL : Threads_lock);
    86   return is_a_protected_JavaThread(thread);
    86   return is_a_protected_JavaThread(thread);