mirror of
https://github.com/python/cpython.git
synced 2024-11-29 21:05:33 +08:00
Applying patch #726869 by Andrew I MacIntyre, reducing in _sre.c the
recursion limit for certain setups of FreeBSD and OS/2.
This commit is contained in:
parent
7628f1ffff
commit
c23fb77477
@ -72,9 +72,18 @@ static char copyright[] =
|
|||||||
/* FIXME: maybe the limit should be 40000 / sizeof(void*) ? */
|
/* FIXME: maybe the limit should be 40000 / sizeof(void*) ? */
|
||||||
#define USE_RECURSION_LIMIT 7500
|
#define USE_RECURSION_LIMIT 7500
|
||||||
#else
|
#else
|
||||||
|
#if defined(__GNUC__) && (__GNUC__ > 2) && \
|
||||||
|
(defined(__FreeBSD__) || defined(PYOS_OS2))
|
||||||
|
/* gcc 3.x, on FreeBSD and OS/2+EMX and at optimisation levels of
|
||||||
|
* -O3 (autoconf default) and -O2 (EMX port default), generates code
|
||||||
|
* for _sre that fails for the default recursion limit.
|
||||||
|
*/
|
||||||
|
#define USE_RECURSION_LIMIT 7500
|
||||||
|
#else
|
||||||
#define USE_RECURSION_LIMIT 10000
|
#define USE_RECURSION_LIMIT 10000
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* enables fast searching */
|
/* enables fast searching */
|
||||||
#define USE_FAST_SEARCH
|
#define USE_FAST_SEARCH
|
||||||
|
Loading…
Reference in New Issue
Block a user