mirror of
https://github.com/python/cpython.git
synced 2025-08-11 04:19:06 +00:00
[3.12] GH-107263: Increase C stack limit for most functions, except _PyEval_EvalFrameDefault()
(GH-107535) (#107618)
GH-107263: Increase C stack limit for most functions, except `_PyEval_EvalFrameDefault()` (GH-107535)
* Set C recursion limit to 1500, set cost of eval loop to 2 frames, and compiler mutliply to 2.
(cherry picked from commit fa45958450
)
Co-authored-by: Mark Shannon <mark@hotpy.org>
This commit is contained in:
parent
58af2293c5
commit
98902d6c05
21 changed files with 57 additions and 45 deletions
|
@ -1,7 +1,7 @@
|
|||
import collections.abc
|
||||
import types
|
||||
import unittest
|
||||
|
||||
from test.support import C_RECURSION_LIMIT
|
||||
|
||||
class TestExceptionGroupTypeHierarchy(unittest.TestCase):
|
||||
def test_exception_group_types(self):
|
||||
|
@ -433,7 +433,7 @@ class ExceptionGroupSplitTests(ExceptionGroupTestBase):
|
|||
class DeepRecursionInSplitAndSubgroup(unittest.TestCase):
|
||||
def make_deep_eg(self):
|
||||
e = TypeError(1)
|
||||
for i in range(2000):
|
||||
for i in range(C_RECURSION_LIMIT + 1):
|
||||
e = ExceptionGroup('eg', [e])
|
||||
return e
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue