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

[3.11] gh-98925: Lower marshal recursion depth for WASI (GH-98938) #98979

Merged
merged 2 commits into from
Nov 1, 2022

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Nov 1, 2022

For wasmtime 2.0, the stack depth cost is 6% higher. This causes the default max marshal recursion depth to blow the stack.

As the default marshal depth is 2000 and Windows is set to 1000, split the difference and choose 1500 for WASI to be safe.
(cherry picked from commit 9711265)

Co-authored-by: Brett Cannon brett@python.org

Automerge-Triggered-By: GH:brettcannon

For wasmtime 2.0, the stack depth cost is 6% higher. This causes the default max `marshal` recursion depth to blow the stack.

As the default marshal depth is 2000 and Windows is set to 1000, split the difference and choose 1500 for WASI to be safe.
(cherry picked from commit 9711265)

Co-authored-by: Brett Cannon <brett@python.org>
@miss-islington
Copy link
Contributor Author

Sorry, I can't merge this PR. Reason: 6 of 9 required status checks are expected..

@brettcannon brettcannon self-assigned this Nov 1, 2022
@brettcannon brettcannon merged commit 39e0627 into python:3.11 Nov 1, 2022
@miss-islington miss-islington deleted the backport-9711265-3.11 branch November 1, 2022 23:19
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.

3 participants