summaryrefslogtreecommitdiffstats
path: root/Python/thread.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-06-04 23:52:47 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-06-04 23:52:47 (GMT)
commit28eeefe566d77cd3af3d675c4f2216c5033fe538 (patch)
tree7fec63fcf38c5dbe611860fb74e8c49206d2e581 /Python/thread.c
parentc7d14452a4ed303d38498cc16c3cfc0beed9b843 (diff)
downloadcpython-28eeefe566d77cd3af3d675c4f2216c5033fe538.zip
cpython-28eeefe566d77cd3af3d675c4f2216c5033fe538.tar.gz
cpython-28eeefe566d77cd3af3d675c4f2216c5033fe538.tar.bz2
Revert revisions:
46640 Patch #1454481: Make thread stack size runtime tunable. 46647 Markup fix The first is causing many buildbots to fail test runs, and there are multiple causes with seemingly no immediate prospects for repairing them. See python-dev discussion. Note that a branch can (and should) be created for resolving these problems, like svn copy svn+ssh://svn.python.org/python/trunk -r46640 svn+ssh://svn.python.org/python/branches/NEW_BRANCH followed by merging rev 46647 to the new branch.
Diffstat (limited to 'Python/thread.c')
-rw-r--r--Python/thread.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/Python/thread.c b/Python/thread.c
index db5ef33..c9356dc 100644
--- a/Python/thread.c
+++ b/Python/thread.c
@@ -95,31 +95,6 @@ PyThread_init_thread(void)
PyThread__init_thread();
}
-/* Support for runtime thread stack size tuning.
- A value of 0 means using the platform's default stack size
- or the size specified by the THREAD_STACK_SIZE macro. */
-static size_t _pythread_stacksize = 0;
-
-size_t
-PyThread_get_stacksize(void)
-{
- return _pythread_stacksize;
-}
-
-static int
-_pythread_unsupported_set_stacksize(size_t size)
-{
- return PyErr_Warn(PyExc_RuntimeWarning,
- "setting thread stack size not supported on "
- "this platform");
-}
-
-/* Only platforms with THREAD_SET_STACKSIZE() defined in
- pthread_<platform>.h, overriding this default definition,
- will support changing the stack size.
- Return 1 if an exception is pending, 0 otherwise. */
-#define THREAD_SET_STACKSIZE(x) _pythread_unsupported_set_stacksize(x)
-
#ifdef SGI_THREADS
#include "thread_sgi.h"
#endif
@@ -175,14 +150,6 @@ _pythread_unsupported_set_stacksize(size_t size)
#endif
*/
-/* use appropriate thread stack size setting routine.
- Return 1 if an exception is pending, 0 otherwise. */
-int
-PyThread_set_stacksize(size_t size)
-{
- return THREAD_SET_STACKSIZE(size);
-}
-
#ifndef Py_HAVE_NATIVE_TLS
/* If the platform has not supplied a platform specific
TLS implementation, provide our own.