Skip to content

Commit d57212d

Browse files
authored
Rollup merge of #78988 - alexcrichton:one-more-intrinsic, r=sfackler
Fix an intrinsic invocation on threaded wasm This looks like it was forgotten to get updated in #74482 and wasm with threads isn't built on CI so we didn't catch this by accident.
2 parents e3d52b8 + 010265a commit d57212d

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)