[pypy-svn] r29294 - pypy/dist/pypy/interpreter/stablecompiler

hpk at codespeak.net hpk at codespeak.net
Sat Jun 24 12:27:10 CEST 2006

Author: hpk
Date: Sat Jun 24 12:27:09 2006
New Revision: 29294

lowering parser-related large default for recursion depth, 
armin and me each tried with 3000 and 1000 on pypy2 and a 
full py.test run did complete successfully (where it previously 
segfaulted at test_unification).  setting the default to 2000 now, 
it's good to run some more tests with this - there may be side
effects, not covered by a full py.test run. 

Modified: pypy/dist/pypy/interpreter/stablecompiler/transformer.py
--- pypy/dist/pypy/interpreter/stablecompiler/transformer.py	(original)
+++ pypy/dist/pypy/interpreter/stablecompiler/transformer.py	Sat Jun 24 12:27:09 2006
@@ -48,8 +48,8 @@
     setattr(symbol, name, value)
 # transforming is requiring a lot of recursion depth so make sure we have enough
-if sys.getrecursionlimit()<5000:
-    sys.setrecursionlimit(5000)
+if sys.getrecursionlimit()<2000:
+    sys.setrecursionlimit(2000)
 class WalkerError(StandardError):

More information about the Pypy-commit mailing list