You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/fail/concurrency/read_only_atomic_cmpxchg.stderr
+4-8
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,10 @@
1
-
error: Undefined Behavior: atomic operations cannot be performed on read-only memory
2
-
many platforms require atomic read-modify-write instructions to be performed on writeable memory, even if the operation fails (and is hence nominally read-only)
3
-
some platforms implement (some) atomic loads via compare-exchange, which means they do not work on read-only memory; it is possible that we could have an exception permitting this for specific kinds of loads
4
-
please report an issue at <https://github.com/rust-lang/miri/issues> if this is a problem for you
1
+
error: Undefined Behavior: atomic store and read-modify-write operations cannot be performed on read-only memory
2
+
see <https://doc.rust-lang.org/nightly/std/sync/atomic/index.html#atomic-accesses-to-read-only-memory> for more information
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ atomic operations cannot be performed on read-only memory
9
-
many platforms require atomic read-modify-write instructions to be performed on writeable memory, even if the operation fails (and is hence nominally read-only)
10
-
some platforms implement (some) atomic loads via compare-exchange, which means they do not work on read-only memory; it is possible that we could have an exception permitting this for specific kinds of loads
11
-
please report an issue at <https://github.com/rust-lang/miri/issues> if this is a problem for you
6
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ atomic store and read-modify-write operations cannot be performed on read-only memory
7
+
see <https://doc.rust-lang.org/nightly/std/sync/atomic/index.html#atomic-accesses-to-read-only-memory> for more information
12
8
|
13
9
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
14
10
= help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
0 commit comments