about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-11-15 03:02:57 +0100
committerGitHub <noreply@github.com>2020-11-15 03:02:57 +0100
commitd57212d49e8cafa1d13f2a3c62a890cf5d78d001 (patch)
tree162c6c4cdae035a8e4d5749fd5afbfc9e6014354
parente3d52b8051b5ac50dbf71ab73f2b47ecb8d7c624 (diff)
parent010265a4393176bdc62fc8f3e06ef4bf5b42a6da (diff)
downloadrust-d57212d49e8cafa1d13f2a3c62a890cf5d78d001.tar.gz
rust-d57212d49e8cafa1d13f2a3c62a890cf5d78d001.zip
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.
-rw-r--r--library/std/src/sys/wasm/mutex_atomics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/wasm/mutex_atomics.rs b/library/std/src/sys/wasm/mutex_atomics.rs
index 479182ffa44..5ff0ec052b6 100644
--- a/library/std/src/sys/wasm/mutex_atomics.rs
+++ b/library/std/src/sys/wasm/mutex_atomics.rs
@@ -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,