]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-98925: Lower marshal recursion depth for WASI (GH-98938)
authorBrett Cannon <brett@python.org>
Tue, 1 Nov 2022 22:51:05 +0000 (15:51 -0700)
committerGitHub <noreply@github.com>
Tue, 1 Nov 2022 22:51:05 +0000 (15:51 -0700)
commit9711265182f163ba381e7800e3748ac28710f9ef
tree8c71b961eff103e00b93bbaeacf108baa86bbf25
parentc0859743d9ad3bbd4c021200f4162cfeadc0c17a
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.
.gitignore
Lib/test/test_marshal.py
Misc/NEWS.d/next/Core and Builtins/2022-10-31-18-03-10.gh-issue-98925.zpdjVd.rst [new file with mode: 0644]
Python/marshal.c