We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfa8d2f commit 0961e44Copy full SHA for 0961e44
src/shims/unix/macos/sync.rs
@@ -140,7 +140,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
140
141
let layout = this.machine.layouts.uint(Size::from_bytes(size)).unwrap();
142
let futex_val = this
143
- .read_scalar_atomic(&this.ptr_to_mplace(ptr, layout), AtomicReadOrd::Relaxed)?
+ .read_scalar_atomic(&this.ptr_to_mplace(ptr, layout), AtomicReadOrd::Acquire)?
144
.to_bits(Size::from_bytes(size))?;
145
146
let Some(futex) = this.get_sync_or_init(ptr, |_| {
0 commit comments