summaryrefslogtreecommitdiffstats
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorpxinwr <peixing.xin@windriver.com>2020-12-09 21:47:28 (GMT)
committerGitHub <noreply@github.com>2020-12-09 21:47:28 (GMT)
commitd5dcb653176387b72c8630f1a5464571f538a639 (patch)
tree7c5e3977d219eb338f87dfbc5800d31791a5d118 /Python/thread_pthread.h
parenta82f63f5af027a0eab0f0812d750b804368cbd25 (diff)
downloadcpython-d5dcb653176387b72c8630f1a5464571f538a639.zip
cpython-d5dcb653176387b72c8630f1a5464571f538a639.tar.gz
cpython-d5dcb653176387b72c8630f1a5464571f538a639.tar.bz2
bpo-31904: Define THREAD_STACK_SIZE for VxWorks (GH-23718)
Diffstat (limited to 'Python/thread_pthread.h')
-rw-r--r--Python/thread_pthread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
index e6910b3..ec7d737 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -62,6 +62,10 @@
# define THREAD_STACK_SIZE 0x800000
# endif
#endif
+#if defined(__VXWORKS__) && defined(THREAD_STACK_SIZE) && THREAD_STACK_SIZE == 0
+#undef THREAD_STACK_SIZE
+#define THREAD_STACK_SIZE 0x100000
+#endif
/* for safety, ensure a viable minimum stacksize */
#define THREAD_STACK_MIN 0x8000 /* 32 KiB */
#else /* !_POSIX_THREAD_ATTR_STACKSIZE */