Skip to content
Beskid Platform specification

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

Fiber stack initial size and cap

Platform spec ADR

Fiber stack initial size and cap

Spec standingStandard

Owner
Piotr Mikstacki
Submitter
Piotr Mikstacki

Fiber stacks must balance memory use against deep call chains from generated code and corelib. GC needs precise stack maps at safepoints on every fiber stack.

ParameterValue
Initial size64 KiB per fiber
GrowthGrowable until cap
Maximum8 MiB cap per fiber
OverflowFiberError::StackOverflow at Join — no undefined behavior
SwitchingCallee stacks ABI-aligned; callee-saved registers saved per platform ABI
GCAll fiber stacks enumerable at safepoints via compiler stack maps

Documentation and corelib must cite these limits. Stack switching may use manual swap techniques documented in design model.

Scheduler stack allocator; fiber spawn/join integration tests.