Skip to content

Commit

Permalink
Rollup merge of rust-lang#78988 - alexcrichton:one-more-intrinsic, r=…
Browse files Browse the repository at this point in the history
…sfackler

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.
  • Loading branch information
Dylan-DPC committed Nov 15, 2020
2 parents e3d52b8 + 010265a commit d57212d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/wasm/mutex_atomics.rs
Original file line number Diff line number Diff line change
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 d57212d

Please sign in to comment.