diff options
author | Victor Stinner <vstinner@python.org> | 2023-11-16 13:52:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 13:52:33 (GMT) |
commit | bd89bca9e2a57779c251ee6fadf4887acb364824 (patch) | |
tree | 0b2176ea71904f585c968bb82a0743e4fbbf478d /Misc | |
parent | 81ab0e8a4add53035c87b040afda6d554cace528 (diff) | |
download | cpython-bd89bca9e2a57779c251ee6fadf4887acb364824.zip cpython-bd89bca9e2a57779c251ee6fadf4887acb364824.tar.gz cpython-bd89bca9e2a57779c251ee6fadf4887acb364824.tar.bz2 |
gh-111798: Use lower Py_C_RECURSION_LIMIT in debug mode (#112124)
* Run again test_ast_recursion_limit() on WASI platform.
* Add _testinternalcapi.get_c_recursion_remaining().
* Fix test_ast and test_sys_settrace: test_ast_recursion_limit() and
test_trace_unpack_long_sequence() now adjust the maximum recursion
depth depending on the the remaining C recursion.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2023-11-15-20-20-51.gh-issue-111798.cs-3t3.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-11-15-20-20-51.gh-issue-111798.cs-3t3.rst b/Misc/NEWS.d/next/Core and Builtins/2023-11-15-20-20-51.gh-issue-111798.cs-3t3.rst new file mode 100644 index 0000000..24bb4ec --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2023-11-15-20-20-51.gh-issue-111798.cs-3t3.rst @@ -0,0 +1,4 @@ +When Python is built in debug mode, set the C recursion limit to 500 instead +of 1500. A debug build is likely built with low optimization level which +implies higher stack memory usage than a release build. Patch by Victor +Stinner. |