mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +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
|
@ -7,7 +7,7 @@ import os
|
|||
import pickle
|
||||
import random
|
||||
import sys
|
||||
from test.support import bigmemtest, _1G, _4G
|
||||
from test.support import bigmemtest, _1G, _4G, skip_on_s390x
|
||||
|
||||
|
||||
zlib = import_helper.import_module('zlib')
|
||||
|
@ -44,10 +44,7 @@ requires_Decompress_copy = unittest.skipUnless(
|
|||
# zlib.decompress(func1(data)) == zlib.decompress(func2(data)) == data
|
||||
#
|
||||
# Make the assumption that s390x always has an accelerator to simplify the skip
|
||||
# condition. Windows doesn't have os.uname() but it doesn't support s390x.
|
||||
skip_on_s390x = unittest.skipIf(hasattr(os, 'uname') and os.uname().machine == 's390x',
|
||||
'skipped on s390x')
|
||||
|
||||
# condition.
|
||||
|
||||
class VersionTestCase(unittest.TestCase):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue