Skip to content

Commit fecb7b4

Browse files
committedApr 21, 2024·
Auto merge of #124193 - RalfJung:miri, r=RalfJung
Miri subtree update r? `@ghost`
2 parents b9be3c4 + ae37b6e commit fecb7b4

File tree

114 files changed

+1400
-685
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+1400
-685
lines changed
 

‎src/tools/miri/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,16 @@ up the sysroot. If you are using `miri` (the Miri driver) directly, see the
295295
Miri adds its own set of `-Z` flags, which are usually set via the `MIRIFLAGS`
296296
environment variable. We first document the most relevant and most commonly used flags:
297297

298+
* `-Zmiri-address-reuse-rate=<rate>` changes the probability that a freed *non-stack* allocation
299+
will be added to the pool for address reuse, and the probability that a new *non-stack* allocation
300+
will be taken from the pool. Stack allocations never get added to or taken from the pool. The
301+
default is `0.5`.
302+
* `-Zmiri-address-reuse-cross-thread-rate=<rate>` changes the probability that an allocation which
303+
attempts to reuse a previously freed block of memory will also consider blocks freed by *other
304+
threads*. The default is `0.1`, which means by default, in 90% of the cases where an address reuse
305+
attempt is made, only addresses from the same thread will be considered. Reusing an address from
306+
another thread induces synchronization between those threads, which can mask data races and weak
307+
memory bugs.
298308
* `-Zmiri-compare-exchange-weak-failure-rate=<rate>` changes the failure rate of
299309
`compare_exchange_weak` operations. The default is `0.8` (so 4 out of 5 weak ops will fail).
300310
You can change it to any value between `0.0` and `1.0`, where `1.0` means it

‎src/tools/miri/rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
23d47dba319331d4418827cfbb8c1af283497d3c
1+
c8d19a92aa9022eb690899cf6d54fd23cb6877e5

0 commit comments

Comments
 (0)
Please sign in to comment.