Skip to content

Commit 415906c

Browse files
committed
Revert to estimated stack size for AIX
1 parent 1d76b48 commit 415906c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/ceval.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ _Py_EnterRecursiveCallUnchecked(PyThreadState *tstate)
342342
#elif defined(__hppa__) || defined(__powerpc64__)
343343
# define Py_C_STACK_SIZE 2000000
344344
#else
345-
# define Py_C_STACK_SIZE 5000000
345+
# define Py_C_STACK_SIZE 4000000
346346
#endif
347347

348348
void
@@ -359,7 +359,7 @@ _Py_InitializeRecursionLimits(PyThreadState *tstate)
359359
_tstate->c_stack_soft_limit = _tstate->c_stack_hard_limit + PYOS_STACK_MARGIN_BYTES;
360360
#else
361361
uintptr_t here_addr = _Py_get_machine_stack_pointer();
362-
# if defined(HAVE_PTHREAD_GETATTR_NP)
362+
# if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(_AIX)
363363
size_t stack_size, guard_size;
364364
void *stack_addr;
365365
pthread_attr_t attr;

0 commit comments

Comments
 (0)