Documentation

Miri.Interpreter.MainThreadCallback

Pinned concurrency/scheduler.rs::run_on_stack_empty (31-41), instantiated for eval.rs::MainThreadState's captured closure. Source take/reset/invoke/restore ordering is preserved. Machine-stop exits and errors do not restore the taken callback; successful Pending (including callback continuation) restores it.

Instances For
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Miri.Interpreter.runMainThreadCallback {P E H Error : Type} (dummySpanToken : Nat) (body : MainThreadM P E H Error ProgramExitPoll) :

        The dummy-span token must denote actual source DUMMY_SP in the caller's span representation. It is deliberately supplied rather than inventing span0.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Miri.Interpreter.runMainThreadOnStackEmpty {P E H Error ProvExtra : Type} [Memory.PointerProvenance P] (dummySpanToken : Nat) (format : ConstructorBinaryFormat) (platform : TlsPlatform) (target : ABI.RuntimeTargetDataLayout) (constructors : GlobalCtorQueries P E H Error) (main : MainThreadQueries P E H Error) (destructors : TlsDestructorQueries P E H Error) (termination : ThreadExitQueries P E H ProvExtra Error) :

          Complete main/global-ctor/main-return/program-exit callback, for an actual empty stack. Entry selection and machine initialization precede this API.

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