Skip to content

Commit a00b59e

Browse files
committed
Increase stack size.
1 parent 013f6eb commit a00b59e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Python/pystate.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,9 +785,10 @@ stack_grows(void) {
785785
return -1;
786786
}
787787
}
788-
#define DEFAULT_STACK_ALLOWANCE (1<<16)
789-
#define SIZE_OF_RED_ZONE (1<<10)
790-
#define SIZE_OF_YELLOW_ZONE (3<<10)
788+
#define BLOCK_SIZE (1 << 10)
789+
#define DEFAULT_STACK_ALLOWANCE (100 * BLOCK_SIZE)
790+
#define SIZE_OF_RED_ZONE BLOCK_SIZE
791+
#define SIZE_OF_YELLOW_ZONE (3 * BLOCK_SIZE)
791792

792793
int
793794
_Py_OS_GetStackLimits(void** low, void** high);

0 commit comments

Comments
 (0)