[−][src]Module wasmer_runtime_core::fault

The fault module contains the implementation for handling breakpoints, traps, and signals for wasm code.

Modules

raw

The raw module contains required externed function interfaces for the fault module.

Structs

BoundaryRegisterPreservation

A store for boundary register preservation.

FaultInfo

Info about the fault

Functions

allocate_and_run

Allocates and runs with the given stack size and closure.

begin_unsafe_unwind⚠

Begins an unsafe unwind.

catch_unsafe_unwind⚠

Catches an unsafe unwind with the given functions and breakpoints.

clear_wasm_interrupt⚠

Clears the wasm interrupt.

ensure_sighandler

Ensure the signal handler is installed.

get_boundary_register_preservation⚠

Gets a mutable pointer to the BoundaryRegisterPreservation.

get_fault_info⚠

Get fault info from siginfo and ucontext.

get_wasm_interrupt_signal_mem⚠

Gets the wasm interrupt signal mem.

pop_code_version

Pops a CodeVersion from the current code versions.

push_code_version

Pushes a new CodeVersion to the current code versions.

set_wasm_interrupt⚠

Sets a wasm interrupt.

set_wasm_interrupt_on_ctx⚠

Sets the wasm interrupt on the given Ctx.

was_sigint_triggered_fault

Returns a boolean indicating if SIGINT triggered the fault.

with_ctx⚠

Runs a callback function with the given Ctx.