Skip to content

Commit abbdfd4

Browse files
committed
Auto merge of #1693 - rust-lang:oli-obk-patch-1, r=RalfJung
Document -Zmiri-compare-exchange-weak-failure-rate
2 parents bcb87a7 + 3974430 commit abbdfd4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 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**.

0 commit comments

Comments
 (0)