We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b09f70 commit e5e1aabCopy full SHA for e5e1aab
src/hotspot/share/runtime/thread.inline.hpp
@@ -162,7 +162,7 @@ inline JavaThreadState JavaThread::thread_state() const {
162
inline void JavaThread::set_thread_state(JavaThreadState s) {
163
assert(current_or_null() == NULL || current_or_null() == this,
164
"state change should only be called by the current thread");
165
-#if defined(PPC64) || defined (AARCH64)
+#if defined(PPC64) || defined (AARCH64) || defined(RISCV64)
166
// Use membars when accessing volatile _thread_state. See
167
// Threads::create_vm() for size checks.
168
Atomic::release_store((volatile jint*)&_thread_state, (jint)s);
0 commit comments