Skip to content

Commit 010265a

Browse files
committed
Fix an intrinsic invocation on threaded wasm
This looks like it was forgotten to get updated in rust-lang#74482 and wasm with threads isn't built on CI so we didn't catch this by accident.
1 parent 12f0dba commit 010265a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/wasm/mutex_atomics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl ReentrantMutex {
138138
self.owner.swap(0, SeqCst);
139139
// SAFETY: the caller must gurantee that `self.ptr()` is valid i32.
140140
unsafe {
141-
wasm32::atomic_notify(self.ptr() as *mut i32, 1);
141+
wasm32::memory_atomic_notify(self.ptr() as *mut i32, 1);
142142
} // wake up one waiter, if any
143143
}
144144
ref mut n => *n -= 1,

0 commit comments

Comments
 (0)