Skip to content

Commit

Permalink
explain -Zmiri-compare-exchange-weak-failure-rate=0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jun 26, 2022
1 parent 85dde27 commit a6166ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/miri.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ MIRIFLAGS="-Zmiri-symbolic-alignment-check -Zmiri-disable-isolation -Zmiri-disab

# -Zmiri-ignore-leaks is needed for https://github.com/crossbeam-rs/crossbeam/issues/579
# -Zmiri-disable-stacked-borrows is needed for https://github.com/crossbeam-rs/crossbeam/issues/545
# -Zmiri-compare-exchange-weak-failure-rate=0.0 is needed because some sequential tests (e.g.,
# doctest of Stealer::steal) incorrectly assume that sequential weak CAS will never fail.
MIRIFLAGS="-Zmiri-symbolic-alignment-check -Zmiri-disable-stacked-borrows -Zmiri-ignore-leaks -Zmiri-compare-exchange-weak-failure-rate=0.0" \
cargo miri test \
-p crossbeam-deque
Expand Down

0 comments on commit a6166ee

Please sign in to comment.