Skip to content

Commit bef2bd8

Browse files
committed
readme: tag-gc tweaks
1 parent 8e3b9bc commit bef2bd8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tools/miri/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,6 @@ environment variable. We first document the most relevant and most commonly used
324324
ensure alignment. (The standard library `align_to` method works fine in both modes; under
325325
symbolic alignment it only fills the middle slice when the allocation guarantees sufficient
326326
alignment.)
327-
* `-Zmiri-tag-gc=<blocks>` configures how often the pointer tag garbage collector runs. The default
328-
is to search for and remove unreachable tags once every `10,000` basic blocks. Setting this to
329-
`0` disables the garbage collector, which causes some programs to have explosive memory usage
330-
and/or super-linear runtime.
331327

332328
The remaining flags are for advanced use only, and more likely to change or be removed.
333329
Some of these are **unsound**, which means they can lead
@@ -378,6 +374,10 @@ to Miri failing to detect cases of undefined behavior in a program.
378374
* `-Zmiri-retag-fields` changes Stacked Borrows retagging to recurse into fields.
379375
This means that references in fields of structs/enums/tuples/arrays/... are retagged,
380376
and in particular, they are protected when passed as function arguments.
377+
* `-Zmiri-tag-gc=<blocks>` configures how often the pointer tag garbage collector runs. The default
378+
is to search for and remove unreachable tags once every `10000` basic blocks. Setting this to
379+
`0` disables the garbage collector, which causes some programs to have explosive memory usage
380+
and/or super-linear runtime.
381381
* `-Zmiri-track-alloc-id=<id1>,<id2>,...` shows a backtrace when the given allocations are
382382
being allocated or freed. This helps in debugging memory leaks and
383383
use after free bugs. Specifying this argument multiple times does not overwrite the previous

0 commit comments

Comments
 (0)