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