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

gh-98925: Lower marshal recursion depth for WASI #98938

Merged

Conversation

brettcannon
Copy link
Member

@brettcannon brettcannon 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.

Automerge-Triggered-By: GH:brettcannon

For (in-development) wasmtime 2.0, the stack depth cost is 6% higher. As the default is 2000 and Windows is 1000, split the difference and choose 1500 for WASI.
@brettcannon brettcannon requested a review from tiran as a code owner November 1, 2022 01:05
@brettcannon brettcannon self-assigned this Nov 1, 2022
@brettcannon brettcannon added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Nov 1, 2022
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @brettcannon for commit 921f4c5 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Nov 1, 2022
@brettcannon brettcannon added the needs backport to 3.11 only security fixes label Nov 1, 2022
@brettcannon brettcannon added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Nov 1, 2022
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @brettcannon for commit 0aaed2d 🤖

If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Nov 1, 2022
@brettcannon
Copy link
Member Author

To avoid wasting resources by running the buildbots again just for a .gitignore change, https://buildbot.python.org/all/#/builders/1061/builds/193 is the WASI build correlating to the last buildbot trigger.

Copy link
Member

@tiran tiran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@miss-islington
Copy link
Contributor

Thanks @brettcannon for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request 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>
@bedevere-bot
Copy link

GH-98979 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Nov 1, 2022
@brettcannon brettcannon deleted the marshal-recursion-depth-wasi-98925 branch November 1, 2022 22:51
brettcannon added a commit that referenced this pull request Nov 1, 2022
…H-98979)

* gh-98925: Lower marshal recursion depth for WASI (GH-98938)

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>
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.

4 participants