Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 6d0c76e

Browse files
committed
Specify only perfectly overlapping accesses can race
1 parent c731071 commit 6d0c76e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/run-pass/weak_memory/extra_cpp_unsafe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fn static_atomic(val: u32) -> &'static AtomicU32 {
1818
ret
1919
}
2020

21-
// We allow non-atomic and atomic reads to race
21+
// We allow perfectly overlapping non-atomic and atomic reads to race
2222
fn racing_mixed_atomicity_read() {
2323
let x = static_atomic(0);
2424
x.store(42, Relaxed);

0 commit comments

Comments
 (0)