mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
bpo-18049: Sync thread stack size to main thread size on macOS (GH-14748)
This changeset increases the default size of the stack for threads on macOS to the size of the stack of the main thread and reenables the relevant recursion test.
This commit is contained in:
parent
ed5e8e06cb
commit
1a057bab0f
5 changed files with 9 additions and 3 deletions
|
@ -40,7 +40,8 @@
|
|||
*/
|
||||
#if defined(__APPLE__) && defined(THREAD_STACK_SIZE) && THREAD_STACK_SIZE == 0
|
||||
#undef THREAD_STACK_SIZE
|
||||
#define THREAD_STACK_SIZE 0x500000
|
||||
/* Note: This matches the value of -Wl,-stack_size in configure.ac */
|
||||
#define THREAD_STACK_SIZE 0x1000000
|
||||
#endif
|
||||
#if defined(__FreeBSD__) && defined(THREAD_STACK_SIZE) && THREAD_STACK_SIZE == 0
|
||||
#undef THREAD_STACK_SIZE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue