Skip to main content

segv_trace_install

Function segv_trace_install 

Source
pub fn segv_trace_install()
Expand description

Install the forge tier as the process-wide native tier. Idempotent — the first call wins; later calls return the already-installed tier.

Call once at binary startup (CLI, server). The live VM constructors in logicaffeine-compile pick it up for every program they run.

LOGOS_NATIVE_TIER=0 skips installation entirely — the diagnostic kill-switch that isolates pure-bytecode wall time from tiered runs. Install the diagnostic SIGSEGV/SIGBUS tracer (no-op unless LOGOS_SEGV_TRAP is set). Used to localize faults inside JIT’d code while root-causing.