You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Surface stack interp trap reasons through the globals header
The iOS C stack interp only distinguished watchdog cancellation
structurally; assertion-failed and call-stack-overflow traps were
stringly set on ctx->error and printed to stderr. Host callers had
no way to branch on the trap kind via read_trap_reason() the way
they can on the JIT/LLVM paths.
Add a numeric trap_reason to the C Ctx set alongside each ctx->error
assignment (and on cancel), mirror it in the Rust bridge, and reserve
CANCEL_FLAG_RESERVED bytes at the start of stack_codegen globals so
the FFI iOS path can write the reason into TRAP_REASON_OFFSET. The
entry-point call now returns false for any trap, matching the LLVM
setjmp semantics.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments