Skip to content

Commit 0ec82fa

Browse files
committed
tag-gc -> provenance-gc
1 parent 0d0a417 commit 0ec82fa

File tree

14 files changed

+18
-18
lines changed

14 files changed

+18
-18
lines changed

src/tools/miri/.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
- name: Set the tag GC interval to 1 on linux
3939
if: runner.os == 'Linux'
40-
run: echo "MIRIFLAGS=-Zmiri-tag-gc=1" >> $GITHUB_ENV
40+
run: echo "MIRIFLAGS=-Zmiri-provenance-gc=1" >> $GITHUB_ENV
4141

4242
# Cache the global cargo directory, but NOT the local `target` directory which
4343
# we cannot reuse anyway when the nightly changes (and it grows quite large

src/tools/miri/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,10 @@ to Miri failing to detect cases of undefined behavior in a program.
411411
without an explicit value), `none` means it never recurses, `scalar` means it only recurses for
412412
types where we would also emit `noalias` annotations in the generated LLVM IR (types passed as
413413
individual scalars or pairs of scalars). Setting this to `none` is **unsound**.
414-
* `-Zmiri-tag-gc=<blocks>` configures how often the pointer tag garbage collector runs. The default
415-
is to search for and remove unreachable tags once every `10000` basic blocks. Setting this to
416-
`0` disables the garbage collector, which causes some programs to have explosive memory usage
417-
and/or super-linear runtime.
414+
* `-Zmiri-provenance-gc=<blocks>` configures how often the pointer provenance garbage collector runs.
415+
The default is to search for and remove unreachable provenance once every `10000` basic blocks. Setting
416+
this to `0` disables the garbage collector, which causes some programs to have explosive memory
417+
usage and/or super-linear runtime.
418418
* `-Zmiri-track-alloc-id=<id1>,<id2>,...` shows a backtrace when the given allocations are
419419
being allocated or freed. This helps in debugging memory leaks and
420420
use after free bugs. Specifying this argument multiple times does not overwrite the previous

src/tools/miri/src/bin/miri.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,10 +531,10 @@ fn main() {
531531
Err(err) => show_error!("-Zmiri-report-progress requires a `u32`: {}", err),
532532
};
533533
miri_config.report_progress = Some(interval);
534-
} else if let Some(param) = arg.strip_prefix("-Zmiri-tag-gc=") {
534+
} else if let Some(param) = arg.strip_prefix("-Zmiri-provenance-gc=") {
535535
let interval = match param.parse::<u32>() {
536536
Ok(i) => i,
537-
Err(err) => show_error!("-Zmiri-tag-gc requires a `u32`: {}", err),
537+
Err(err) => show_error!("-Zmiri-provenance-gc requires a `u32`: {}", err),
538538
};
539539
miri_config.gc_interval = interval;
540540
} else if let Some(param) = arg.strip_prefix("-Zmiri-measureme=") {

src/tools/miri/src/borrow_tracker/tree_borrows/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ impl<'tcx> Tree {
200200
/// Climb the tree to get the tag of a distant ancestor.
201201
/// Allows operations on tags that are unreachable by the program
202202
/// but still exist in the tree. Not guaranteed to perform consistently
203-
/// if `tag-gc=1`.
203+
/// if `provenance-gc=1`.
204204
fn nth_parent(&self, tag: BorTag, nth_parent: u8) -> Option<BorTag> {
205205
let mut idx = self.tag_mapping.get(&tag).unwrap();
206206
for _ in 0..nth_parent {

src/tools/miri/tests/fail/tree_borrows/reserved/cell-protected-write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@compile-flags: -Zmiri-tree-borrows -Zmiri-tag-gc=0
1+
//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0
22

33
// Check how a Reserved with interior mutability
44
// responds to a Foreign Write under a Protector

src/tools/miri/tests/fail/tree_borrows/reserved/int-protected-write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@compile-flags: -Zmiri-tree-borrows -Zmiri-tag-gc=0
1+
//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0
22

33
#[path = "../../../utils/mod.rs"]
44
#[macro_use]

src/tools/miri/tests/pass/tree_borrows/cell-alternate-writes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@compile-flags: -Zmiri-tree-borrows -Zmiri-tag-gc=0
1+
//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0
22
#[path = "../../utils/mod.rs"]
33
#[macro_use]
44
mod utils;

src/tools/miri/tests/pass/tree_borrows/end-of-protector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@compile-flags: -Zmiri-tree-borrows -Zmiri-tag-gc=0
1+
//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0
22

33
// Check that a protector goes back to normal behavior when the function
44
// returns.

src/tools/miri/tests/pass/tree_borrows/formatting.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@compile-flags: -Zmiri-tree-borrows -Zmiri-tag-gc=0
1+
//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0
22

33
#[path = "../../utils/mod.rs"]
44
#[macro_use]

src/tools/miri/tests/pass/tree_borrows/reborrow-is-read.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@compile-flags: -Zmiri-tree-borrows -Zmiri-tag-gc=0
1+
//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0
22

33
#[path = "../../utils/mod.rs"]
44
#[macro_use]

src/tools/miri/tests/pass/tree_borrows/reserved.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@compile-flags: -Zmiri-tree-borrows -Zmiri-tag-gc=0
1+
//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0
22

33
#[path = "../../utils/mod.rs"]
44
#[macro_use]

src/tools/miri/tests/pass/tree_borrows/unique.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@revisions: default uniq
2-
//@compile-flags: -Zmiri-tree-borrows -Zmiri-tag-gc=0
2+
//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0
33
//@[uniq]compile-flags: -Zmiri-unique-is-unique
44

55
#![feature(ptr_internals)]

src/tools/miri/tests/pass/tree_borrows/vec_unique.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@revisions: default uniq
2-
//@compile-flags: -Zmiri-tree-borrows -Zmiri-tag-gc=0
2+
//@compile-flags: -Zmiri-tree-borrows -Zmiri-provenance-gc=0
33
//@[uniq]compile-flags: -Zmiri-unique-is-unique
44

55
#![feature(vec_into_raw_parts)]

src/tools/miri/tests/utils/miri_extern.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ extern "Rust" {
8484
///
8585
/// The format of what this emits is unstable and may change at any time. In particular, users should be
8686
/// aware that Miri will periodically attempt to garbage collect the contents of all stacks. Callers of
87-
/// this function may wish to pass `-Zmiri-tag-gc=0` to disable the GC.
87+
/// this function may wish to pass `-Zmiri-provenance-gc=0` to disable the GC.
8888
///
8989
/// This function is extremely unstable. At any time the format of its output may change, its signature may
9090
/// change, or it may be removed entirely.

0 commit comments

Comments
 (0)