@@ -538,15 +538,20 @@ extern "Rust" {
538
538
fn miri_start_panic(payload : *mut u8) -> !;
539
539
540
540
/// Miri-provided extern function to get the internal unique identifier for the allocation that a pointer
541
- /// points to. This is only useful as an input to `miri_print_stacks `, and it is a separate call because
541
+ /// points to. This is only useful as an input to `miri_print_borrow_stacks `, and it is a separate call because
542
542
/// getting a pointer to an allocation at runtime can change the borrow stacks in the allocation.
543
+ /// This function should be considered unstable. It exists only to support `miri_print_borrow_stacks` and so
544
+ /// inherits all of its instability.
543
545
fn miri_get_alloc_id(ptr : *const ()) -> u64;
544
546
545
547
/// Miri-provided extern function to print (from the interpreter, not the program) the contents of all
546
- /// borrow stacks in an allocation. The format of what this emits is unstable and may change at any time.
547
- /// In particular, users should be aware that Miri will periodically attempt to garbage collect the
548
- /// contents of all stacks. Callers of this function may wish to pass `-Zmiri-tag-gc=0` to disable the GC.
549
- fn miri_print_stacks(alloc_id : u64);
548
+ /// borrow stacks in an allocation. The leftmost tag is the bottom of the stack.
549
+ /// The format of what this emits is unstable and may change at any time. In particular, users should be
550
+ /// aware that Miri will periodically attempt to garbage collect the contents of all stacks. Callers of
551
+ /// this function may wish to pass `-Zmiri-tag-gc=0` to disable the GC.
552
+ /// This function is extremely unstable. At any time the format of its output may change, its signature may
553
+ /// change, or it may be removed entirely.
554
+ fn miri_print_borrow_stacks(alloc_id : u64);
550
555
551
556
/// Miri-provided extern function to print (from the interpreter, not the
552
557
/// program) the contents of a section of program memory, as bytes. Bytes
0 commit comments