[Python-checkins] python/dist/src/PC/os2emx Makefile, 1.14.6.2, 1.14.6.3

aimacintyre at users.sourceforge.net aimacintyre at users.sourceforge.net
Mon Jan 17 13:22:41 CET 2005


Update of /cvsroot/python/python/dist/src/PC/os2emx
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6081

Modified Files:
      Tag: release23-maint
	Makefile 
Log Message:
backport: make thread stack size compile-time tunable on OS/2, incr main stack

Index: Makefile
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/os2emx/Makefile,v
retrieving revision 1.14.6.2
retrieving revision 1.14.6.3
diff -u -d -r1.14.6.2 -r1.14.6.3
--- Makefile	20 Feb 2004 12:00:06 -0000	1.14.6.2
+++ Makefile	17 Jan 2005 12:22:38 -0000	1.14.6.3
@@ -131,10 +131,26 @@
   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.
@@ -217,7 +233,7 @@
 	@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.3



More information about the Python-checkins mailing list