Skip to content

Commit c9f1ebd

Browse files
committed
TASK_WAITER_CHAIN_DEPTH 256
1 parent f66866b commit c9f1ebd

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/test/test_external_inspection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3809,7 +3809,8 @@ class TestFrameChainLimits(RemoteInspectionTestBase):
38093809
"""Frame chain walks abort instead of looping/overflowing on deep chains."""
38103810

38113811
CHAIN_DEPTH = 1024 + 512 + 1
3812-
TASK_WAITER_CHAIN_DEPTH = 512 + 1
3812+
3813+
TASK_WAITER_CHAIN_DEPTH = 256 + 1
38133814

38143815
def _assert_unwinder_limit_error(self, unwind, expected_substring):
38153816
"""Call unwind() until it raises the frame chain limit error.

Modules/_remote_debugging/_remote_debugging.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ typedef enum _WIN32_THREADSTATE {
148148
#define MAX_LONG_DIGITS 64 /* Allows values up to ~2^1920 */
149149
#define MAX_SET_TABLE_SIZE (1 << 20) /* 1 million entries max for set iteration */
150150
#define MAX_FRAME_CHAIN_DEPTH (1024 + 512) /* Iteration bound for frame chain walks */
151-
#define MAX_TASK_WAITER_CHAIN_DEPTH 512
151+
#define MAX_TASK_WAITER_CHAIN_DEPTH 256
152152

153153
#ifndef MAX
154154
#define MAX(a, b) ((a) > (b) ? (a) : (b))

0 commit comments

Comments
 (0)