[Python-Dev] Time for 2.3.3?

Gustavo Niemeyer niemeyer at conectiva.com
Fri Nov 21 14:50:58 EST 2003


[...]
> which gives all the appearance of defining a default value (if nothing else
> triggers), is actually nested *inside* an
> 
>     #elif defined(__FreeBSD__)
> 
> block (which is in turn nested in a !defined(USE_STACKCHECK) block, which is
> in turn nested in an ifndef SRE_RECURSIVE block).  God only knows what the
> intent was.  But I expect that, yes, USE_RECURSION_LIMIT isn't getting
> defined on anything other than FreeBSD and Win64.

It looks to be this patch's fault:

-------------

From: loewis at users.sourceforge.net
To: python-checkins at python.org
Cc: 
Bcc: 
Subject: [Python-checkins] python/dist/src/Modules _sre.c,2.99,2.99.8.1
Reply-To: python-dev at python.org

Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv28127

Modified Files:
      Tag: release23-maint
	_sre.c 
Log Message:
Patch #813391: Reduce limits for amd64 and sparc64.


Index: _sre.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_sre.c,v
retrieving revision 2.99
retrieving revision 2.99.8.1
diff -C2 -d -r2.99 -r2.99.8.1
*** _sre.c	26 Jun 2003 14:41:08 -0000	2.99
--- _sre.c	20 Oct 2003 20:59:45 -0000	2.99.8.1
***************
*** 72,78 ****
  /* FIXME: maybe the limit should be 40000 / sizeof(void*) ? */
  #define USE_RECURSION_LIMIT 7500
- #else
  
! #if defined(__GNUC__) && defined(WITH_THREAD) && defined(__FreeBSD__)
  /* the pthreads library on FreeBSD has a fixed 1MB stack size for the
   * initial (or "primary") thread, which is insufficient for the default
--- 72,83 ----
  /* FIXME: maybe the limit should be 40000 / sizeof(void*) ? */
  #define USE_RECURSION_LIMIT 7500
  
! #elif defined(__FreeBSD__)
! /* FreeBSD/amd64 and /sparc64 require even smaller limits */
! #if defined(__amd64__)
! #define USE_RECURSION_LIMIT 6000
! #elif defined(__sparc64__)
! #define USE_RECURSION_LIMIT 3000
! #elif defined(__GNUC__) && defined(WITH_THREAD)
  /* the pthreads library on FreeBSD has a fixed 1MB stack size for the
   * initial (or "primary") thread, which is insufficient for the default



_______________________________________________
Python-checkins mailing list
Python-checkins at python.org
http://mail.python.org/mailman/listinfo/python-checkins


-- 
Gustavo Niemeyer
http://niemeyer.net



More information about the Python-Dev mailing list