Skip to content

Commit e5e1aab

Browse files
committed
8284068: riscv: should call Atomic::release_store in JavaThread::set_thread_state
Reviewed-by: shade
1 parent 0b09f70 commit e5e1aab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ inline JavaThreadState JavaThread::thread_state() const {
162162
inline void JavaThread::set_thread_state(JavaThreadState s) {
163163
assert(current_or_null() == NULL || current_or_null() == this,
164164
"state change should only be called by the current thread");
165-
#if defined(PPC64) || defined (AARCH64)
165+
#if defined(PPC64) || defined (AARCH64) || defined(RISCV64)
166166
// Use membars when accessing volatile _thread_state. See
167167
// Threads::create_vm() for size checks.
168168
Atomic::release_store((volatile jint*)&_thread_state, (jint)s);

0 commit comments

Comments
 (0)