| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ed00fee commit f92bb6e
2 files changed
| Original file line number | Diff line number | Diff 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 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -47,6 +47,10 @@ | |||
| 47 | 47 | #undef THREAD_STACK_SIZE | |
| 48 | 48 | #define THREAD_STACK_SIZE 0x400000 | |
| 49 | 49 | #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 | ||
| 50 | 54 | /* for safety, ensure a viable minimum stacksize */ | |
| 51 | 55 | #define THREAD_STACK_MIN 0x8000 /* 32 KiB */ | |
| 52 | 56 | #else /* !_POSIX_THREAD_ATTR_STACKSIZE */ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments