[Python-checkins] python/dist/src/Modules _sre.c,2.99,2.99.8.1

loewis at users.sourceforge.net loewis at users.sourceforge.net
Mon Oct 20 16:59:47 EDT 2003


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





More information about the Python-checkins mailing list