summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2005-01-17 12:20:31 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2005-01-17 12:20:31 (GMT)
commit59fc345b9db30c9b61c96acc7d90626d31d053e0 (patch)
treefd1cca7c6189779ba6aa7bf1807677ff6bf14f2a /PC
parent905bb96516c82cba2234a1afcdada45bab978a00 (diff)
downloadcpython-59fc345b9db30c9b61c96acc7d90626d31d053e0.zip
cpython-59fc345b9db30c9b61c96acc7d90626d31d053e0.tar.gz
cpython-59fc345b9db30c9b61c96acc7d90626d31d053e0.tar.bz2
backport: make thread stack size compile-time tunable on OS/2, incr main stack
Diffstat (limited to 'PC')
-rw-r--r--PC/os2emx/Makefile18
1 files changed, 17 insertions, 1 deletions
diff --git a/PC/os2emx/Makefile b/PC/os2emx/Makefile
index 8ee6371..677605f 100644
--- a/PC/os2emx/Makefile
+++ b/PC/os2emx/Makefile
@@ -129,10 +129,26 @@ else
AR= ar
endif
+
+# === Build time resource settings ===
+
# EMX's default number of file handles is 40, which is sometimes insufficient
# (the tempfile regression test tries to create 100 temporary files)
NFILES=250
+# The default stack size for child threads is 64k bytes, which is
+# insufficient for some applications which do a lot of work in threads
+# (such as Zope, especially in conjunction with Plone).
+# Note that this setting is distinct from the stack size for the main
+# thread, which is set via the %.def rule below.
+# EMX documents that the thread stack size should be at least 32768 bytes;
+# for Zope/Plone at least 128k bytes is recommended.
+# Uncomment & adjust the next line to override the default stack size:
+#CFLAGS+= -DTHREAD_STACK_SIZE=0x20000
+
+
+# === The environment ===
+
# Source file paths
SRCPATH=.;../../Python;../../Parser;../../Objects;../../Include;../../Modules
# Python contains the central core, containing the builtins and interpreter.
@@ -215,7 +231,7 @@ $(OUT)%$O: %.c
@echo Creating .DEF file: $@
@echo NAME $(notdir $*) $(EXETYPE.$(notdir $*).exe) >$@
@echo DESCRIPTION $(DQUOTE)$(DESCRIPTION.$(notdir $*).exe)$(DQUOTE) >>$@
- @echo STACKSIZE 1572864 >>$@
+ @echo STACKSIZE 2097152 >>$@
# Output file names
PYTHON_VER= 2.4