Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c87f5f4

Browse files
committed
Set the max recursion limit to 5000 -- rather conservative (this uses
0.5 MB of the 1 MB available by default for stack on Win32 platforms).
1 parent c03158b commit c87f5f4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

PC/config.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,13 @@ typedef int pid_t;
229229
#define SIZEOF_VOID_P 4
230230
#endif
231231

232+
/* Smaller stack size limit. (9500 would work too, but we're conservative.) */
233+
234+
#ifndef MAX_RECURSION_DEPTH
235+
#define MAX_RECURSION_DEPTH 5000
236+
#endif
237+
238+
232239
/* EXPERIMENTAL FEATURE: When CHECK_IMPORT_CASE is defined, check case of
233240
imported modules against case of file; this causes "import String" to fail
234241
with a NameError exception when it finds "string.py". Normally, you set

0 commit comments

Comments
 (0)