Skip to content

Commit

Permalink
Fix an intrinsic invocation on threaded wasm
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexcrichton committed Nov 12, 2020
1 parent 12f0dba commit 010265a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/wasm/mutex_atomics.rs
Expand Up @@ -138,7 +138,7 @@ impl ReentrantMutex {
self.owner.swap(0, SeqCst);
// SAFETY: the caller must gurantee that `self.ptr()` is valid i32.
unsafe {
wasm32::atomic_notify(self.ptr() as *mut i32, 1);
wasm32::memory_atomic_notify(self.ptr() as *mut i32, 1);
} // wake up one waiter, if any
}
ref mut n => *n -= 1,
Expand Down

0 comments on commit 010265a

Please sign in to comment.