8000 gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803) by tiran · Pull Request #92803 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-90473: Decrease recursion limit and skip tests on WASI (GH-92803) #92803

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

Merged
merged 7 commits into from
May 19, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reduce parser stack size on WASI
  • Loading branch information
tiran committed May 18, 2022
commit 9d6a9e9bce52f63db7157b5939a72676a0ce44c9
1 change: 0 additions & 1 deletion Lib/test/test_syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -2117,7 +2117,6 @@ def test_syntax_error_on_deeply_nested_blocks(self):
self._check_error(source, "too many statically nested blocks")

@support.cpython_only
@unittest.skipIf(support.is_wasi, "Exhausts WASI call stack")
def test_error_on_parser_stack_overflow(self):
source = "-" * 100000 + "4"
for mode in ["exec", "eval", "single"]:
Expand Down
6 changes: 5 additions & 1 deletion Parser/parser.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion Tools/peg_generator/pegen/c_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@
# define D(x)
#endif

# define MAXSTACK 6000
#ifdef __wasi__
# define MAXSTACK 4000
#else
4A3B # define MAXSTACK 6000
#endif

"""

Expand Down
0