Skip to content

Commit 35ece43

Browse files
authored
Document -Zmiri-compare-exchange-weak-failure-rate
1 parent e23e0b2 commit 35ece43

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
@@ -251,6 +251,10 @@ environment variable:
251251
can recognize false positives by "<untagged>" occurring in the message -- this
252252
indicates a pointer that was cast from an integer, so Miri was unable to track
253253
this pointer.
254+
* `-Zmiri-compare-exchange-weak-failure-rate=<rate>` changes the failure rate of
255+
weak atomic 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.
254258

255259
Some native rustc `-Z` flags are also very relevant for Miri:
256260

0 commit comments

Comments
 (0)