8000 Account for address santizer when setting C recursion limit · python/cpython@3175e96 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3175e96

Browse files
committed
Account for address santizer when setting C recursion limit
1 parent 8c1dae9 commit 3175e96

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Lib/test/support/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2374,6 +2374,8 @@ def adjust_int_max_str_digits(max_digits):
23742374
C_RECURSION_LIMIT = 800
23752375
elif sys.platform.startswith('win'):
23762376
C_RECURSION_LIMIT = 3000
2377+
elif check_sanitizer(address=True):
2378+
C_RECURSION_LIMIT = 4000
23772379
else:
23782380
C_RECURSION_LIMIT = 10000
23792381

Lib/test/test_isinstance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def blowstack(fxn, arg, compare_to):
352352
# Make sure that calling isinstance with a deeply nested tuple for its
353353
# argument will raise RecursionError eventually.
354354
tuple_arg = (compare_to,)
355-
for cnt in range(support.EXCEEDS_RECURSION_LIMIT):
355+
for cnt in range(support.C_RECURSION_LIMIT * 2):
356356
tuple_arg = (tuple_arg,)
357357
fxn(arg, tuple_arg)
358358

0 commit comments

Comments
 (0)
0