Documentation

Miri.Interpreter.LeakCheck

rustc interpret/memory.rs::take_leaked_allocations. This is deliberately separate from provenance GC: only global-kind allocations and static_roots seed leak reachability. Taking leaks is destructive and permits no continuation.

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    No access/retag/deallocation hook runs here. Source removes allocations straight from alloc_map after reachability, retaining their bytes and extras in the returned report. Missing unchanged compiler globals do not add edges.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem Miri.Interpreter.LeakCheck.takeProfiled_eq_take {E : Type} (profile : Lean.Options) (memory : Memory.MemoryState Memory.Provenance E Memory.MiriMemoryKind) (staticRoots : Array Memory.AllocId) :
      takeProfiled profile memory staticRoots = take memory staticRoots