Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase default Wasm stack to 1MB #5529

Merged
merged 1 commit into from
Jun 8, 2020

Conversation

kubkon
Copy link
Member

@kubkon kubkon commented Jun 4, 2020

This commit increases the default Wasm stack to 1MB from the default of 1 Wasm page which equal 64KB. This seems like a reasonable default size while at the same time not overly large. Also, Rust lang seems to be favouring this default as well: rust-lang#50083.

For more discussion on this topic and arriving at this conclusion, see #3735.

cc @fengb @pixelherodev @andrewrk

This commit increases the default Wasm stack to 1MB from the default
of 1 Wasm page which equal 64KB. This seems like a reasonable default
size while at the same time not overly large. Also, Rust lang seems
to be favouring this default as well: [rust-lang#50083].

[rust-lang#50083]: rust-lang/rust#50083
@andrewrk
Copy link
Member

andrewrk commented Jun 8, 2020

Eventually the plan is to have zig compute the required stack size when compiling, making the default and overriding (#5543) unnecessary. But until then, manual configuration is necessary. Thanks!

@kubkon kubkon deleted the bigger-default-wasm-stack branch December 9, 2020 20:51
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.

2 participants