Skip to content

Commit 02cdf2f

Browse files
committed
Yet another attempt to get the WASI build to work
1 parent 0b40773 commit 02cdf2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Include/cpython/pystate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ struct _ts {
195195
// higher stack memory usage than a release build: use a lower limit.
196196
# if defined(__wasi__)
197197
// Based on wasmtime 16.
198-
# define Py_C_RECURSION_LIMIT 350
198+
# define Py_C_RECURSION_LIMIT 300
199199
# else
200200
# define Py_C_RECURSION_LIMIT 500
201201
# endif

Lib/test/test_dynamic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def __missing__(self, key):
141141
return int(key.removeprefix("_number_"))
142142

143143
# Need more than 256 variables to use EXTENDED_ARGS
144-
variables = 300
144+
variables = 270
145145
code = "lambda: " + "+".join(f"_number_{i}" for i in range(variables))
146146
sum_func = eval(code, MyGlobals())
147147
expected = sum(range(variables))

0 commit comments

Comments
 (0)