Skip to content

Commit f92bb6e

Browse files
bpo-18049: Define THREAD_STACK_SIZE for AIX to pass default recursion limit test (GH-15081)
* Define THREAD_STACK_SIZE for AIX to pass default recursion limit test (cherry picked from commit 9670ce7) Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
1 parent ed00fee commit f92bb6e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Add definition of THREAD_STACK_SIZE for AIX in Python/thread_pthread.h
2+
The default thread stacksize caused crashes with the default recursion limit
3+
Patch by M Felt

Python/thread_pthread.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@
4747
#undef THREAD_STACK_SIZE
4848
#define THREAD_STACK_SIZE 0x400000
4949
#endif
50+
#if defined(_AIX) && defined(THREAD_STACK_SIZE) && THREAD_STACK_SIZE == 0
51+
#undef THREAD_STACK_SIZE
52+
#define THREAD_STACK_SIZE 0x200000
53+
#endif
5054
/* for safety, ensure a viable minimum stacksize */
5155
#define THREAD_STACK_MIN 0x8000 /* 32 KiB */
5256
#else /* !_POSIX_THREAD_ATTR_STACKSIZE */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy