aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authoralane <alane@FreeBSD.org>2003-02-07 00:44:21 +0800
committeralane <alane@FreeBSD.org>2003-02-07 00:44:21 +0800
commit4955a746f50faacf82bad3f2442ec4d53f6b3f6c (patch)
treefa55874cf45d19373b4ed1dd2b66fa8ca93f4dc3 /lang
parentb4912e311e6c9b7cd6dba2a01c0877e4087db0d8 (diff)
downloadfreebsd-ports-gnome-4955a746f50faacf82bad3f2442ec4d53f6b3f6c.tar.gz
freebsd-ports-gnome-4955a746f50faacf82bad3f2442ec4d53f6b3f6c.tar.zst
freebsd-ports-gnome-4955a746f50faacf82bad3f2442ec4d53f6b3f6c.zip
Set stacksize to 128K from 64K. Adapted from http://zwiki.org/IssueNo0226.
PR: 47943 Submitted by: Alex Rodioukov <simuran@shaw.ca>
Diffstat (limited to 'lang')
-rw-r--r--lang/python21/files/patch-Python-thread_pthread.h-stacksize32
1 files changed, 32 insertions, 0 deletions
diff --git a/lang/python21/files/patch-Python-thread_pthread.h-stacksize b/lang/python21/files/patch-Python-thread_pthread.h-stacksize
new file mode 100644
index 000000000000..f30824ad298b
--- /dev/null
+++ b/lang/python21/files/patch-Python-thread_pthread.h-stacksize
@@ -0,0 +1,32 @@
+--- Python/thread_pthread.h.orig Thu Jan 10 06:12:20 2002
++++ Python/thread_pthread.h Thu Feb 6 11:27:49 2003
+@@ -128,14 +128,14 @@
+ {
+ pthread_t th;
+ int success;
+-#ifdef PTHREAD_SYSTEM_SCHED_SUPPORTED
+ pthread_attr_t attrs;
+-#endif
++
+ dprintf(("PyThread_start_new_thread called\n"));
+ if (!initialized)
+ PyThread_init_thread();
+-#ifdef PTHREAD_SYSTEM_SCHED_SUPPORTED
+ pthread_attr_init(&attrs);
++ pthread_attr_setstacksize(&attrs, (1 << 17));
++#ifdef PTHREAD_SYSTEM_SCHED_SUPPORTED
+ pthread_attr_setscope(&attrs, PTHREAD_SCOPE_SYSTEM);
+ #endif
+
+@@ -153,11 +153,7 @@
+ func,
+ arg
+ #elif defined(PY_PTHREAD_STD)
+-#ifdef PTHREAD_SYSTEM_SCHED_SUPPORTED
+ &attrs,
+-#else
+- (pthread_attr_t*)NULL,
+-#endif
+ (void* (*)(void *))func,
+ (void *)arg
+ #endif