Specify only perfectly overlapping accesses can race
This commit is contained in:
parent
c731071640
commit
6d0c76ea1b
@ -18,7 +18,7 @@ fn static_atomic(val: u32) -> &'static AtomicU32 {
|
||||
ret
|
||||
}
|
||||
|
||||
// We allow non-atomic and atomic reads to race
|
||||
// We allow perfectly overlapping non-atomic and atomic reads to race
|
||||
fn racing_mixed_atomicity_read() {
|
||||
let x = static_atomic(0);
|
||||
x.store(42, Relaxed);
|
||||
|
Loading…
Reference in New Issue
Block a user