Skip to content

Ease friction for Stack size selection - #46

Merged
bernardassan merged 5 commits into
mainfrom
stack-size-selection
Jul 9, 2026
Merged

Ease friction for Stack size selection#46
bernardassan merged 5 commits into
mainfrom
stack-size-selection

Conversation

@bernardassan

Copy link
Copy Markdown
Collaborator

No description provided.

remove some unused imports
make coroutines, fn followed by args and stack space
add logs for used coroutine stack space in debug mode to hint needed stack
Add Stack type for stack size
the extra stack space for coroutine is actually only needed by aarch64
 so set that accordinly
Use the new Stack primative in e2e and with the stack space log hints
 the stack spaces have reduced drastically 8MiB to max 25KiB

Signed-off-by: Bernard Assan <mega.alpha100@gmail.com>
use std.mem fn for stackUsed fn
reduce namespacing for std.mem
instead of special casing aarch64 in Frame.init increase the stack sizes
add windows stack size requirements, which is usually more the unix

Signed-off-by: Bernard Assan <mega.alpha100@gmail.com>
add 2MiB to Frame.Stack fields
use is_unix instead of is_windows

Signed-off-by: Bernard Assan <mega.alpha100@gmail.com>
replace copyForwards with @memcpy

Signed-off-by: Bernard Assan <mega.alpha100@gmail.com>
@bernardassan
bernardassan force-pushed the stack-size-selection branch from 4fee4b3 to 647188e Compare July 8, 2026 16:56
add missing steps in Stack sizes
Signed-off-by: Bernard Assan <mega.alpha100@gmail.com>
@bernardassan
bernardassan force-pushed the stack-size-selection branch from 647188e to 441b623 Compare July 8, 2026 17:56
@bernardassan
bernardassan merged commit affed85 into main Jul 9, 2026
7 checks passed
@bernardassan
bernardassan deleted the stack-size-selection branch July 9, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant