Skip to content

Commit 10979ce

Browse files
committed
turns out relaxed accesses suffice here
1 parent d45d3a3 commit 10979ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/concurrency/sync.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ pub fn lazy_sync_get_data<'tcx, T: 'static + Copy>(
234234
&init_field,
235235
&ImmTy::from_scalar(init_cookie, ecx.machine.layouts.u32),
236236
init_cookie,
237-
AtomicRwOrd::Acquire,
238-
AtomicReadOrd::Acquire,
237+
AtomicRwOrd::Relaxed,
238+
AtomicReadOrd::Relaxed,
239239
/* can_fail_spuriously */ false,
240240
)?
241241
.to_scalar_pair();

0 commit comments

Comments
 (0)