summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-08-01 07:38:57 -0700
committerGitHub <noreply@github.com>2019-08-01 07:38:57 -0700
commit8399641c34d8136c3151fda6461cc4727a20b28e (patch)
tree054fab97e784fcdabcb7e1579bab4eb35eaa84b5 /Python
parentdcc53ebbff384076b0763c1f842966c189417071 (diff)
downloadcpython-git-8399641c34d8136c3151fda6461cc4727a20b28e.tar.gz
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. (cherry picked from commit 1a057bab0f18d6ad843ce321d1d77a4819497ae4) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Diffstat (limited to 'Python')
-rw-r--r--Python/thread_pthread.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
index a36d16c19e..994e35b2cc 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -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