Skip to content

Commit 3974430

Browse files
authored
Update README.md
1 parent bd04091 commit 3974430

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ up the sysroot. If you are using `miri` (the Miri driver) directly, see the
195195
Miri adds its own set of `-Z` flags, which are usually set via the `MIRIFLAGS`
196196
environment variable:
197197

198+
* `-Zmiri-compare-exchange-weak-failure-rate=<rate>` changes the failure rate of
199+
`compare_exchange_weak` operations. The default is `0.8` (so 4 out of 5 weak ops will fail).
200+
You can change it to any value between `0.0` and `1.0`, where `1.0` means it
201+
will always fail and `0.0` means it will never fail.
198202
* `-Zmiri-disable-alignment-check` disables checking pointer alignment, so you
199203
can focus on other failures, but it means Miri can miss bugs in your program.
200204
Using this flag is **unsound**.
@@ -251,10 +255,6 @@ environment variable:
251255
can recognize false positives by "<untagged>" occurring in the message -- this
252256
indicates a pointer that was cast from an integer, so Miri was unable to track
253257
this pointer.
254-
* `-Zmiri-compare-exchange-weak-failure-rate=<rate>` changes the failure rate of
255-
`compare_exchange_weak` operations. The default is `0.8` (so 4 out of 5 weak ops will fail).
256-
You can change it to any value between `0.0` and `1.0`, where `1.0` means it
257-
will always fail and `0.0` means it will never fail.
258258

259259
Some native rustc `-Z` flags are also very relevant for Miri:
260260

0 commit comments

Comments
 (0)