Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Stack captures cannot escape spawn

Platform spec ADR

Stack captures cannot escape spawn

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

Moving stack references into another fiber breaks the memory model and GC rooting assumptions.

Closure captures that would leak stack references across fibers must be rejected with diagnostic StackReferenceEscapesSpawn (compile error).

Authors pass data through Channel<T> or other approved sharing; runtime does not repair invalid captures.

compiler/crates/beskid_analysis/ capture analysis; Memory and references.