diff options
author | Alan Eldridge <alane@FreeBSD.org> | 2003-02-06 16:44:21 +0000 |
---|---|---|
committer | Alan Eldridge <alane@FreeBSD.org> | 2003-02-06 16:44:21 +0000 |
commit | 034f41d35509a2747694d4a2498e39b4ba5571e0 (patch) | |
tree | 208a00e0e0992eb964e982b8111df91a590ccbf8 /lang | |
parent | Update to 1.0.3. (diff) |
Set stacksize to 128K from 64K. Adapted from http://zwiki.org/IssueNo0226.
PR: 47943
Submitted by: Alex Rodioukov <simuran@shaw.ca>
Notes
Notes:
svn path=/head/; revision=74979
Diffstat (limited to 'lang')
-rw-r--r-- | lang/python21/files/patch-Python-thread_pthread.h-stacksize | 32 |
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 |