[pypy-svn] r64103 - in pypy/trunk/pypy/translator/stackless: . test

arigo at codespeak.net arigo at codespeak.net
Wed Apr 15 17:47:51 CEST 2009


Author: arigo
Date: Wed Apr 15 17:47:50 2009
New Revision: 64103

Modified:
   pypy/trunk/pypy/translator/stackless/code.py
   pypy/trunk/pypy/translator/stackless/test/test_depth.py
Log:
Set the default limit to 100000 instead of sys.maxint.


Modified: pypy/trunk/pypy/translator/stackless/code.py
==============================================================================
--- pypy/trunk/pypy/translator/stackless/code.py	(original)
+++ pypy/trunk/pypy/translator/stackless/code.py	Wed Apr 15 17:47:50 2009
@@ -310,7 +310,7 @@
         self.exception = None
         self.masterarray = lltype.malloc(frame.FRAME_INFO_ARRAY, 0,
                                          immortal=True)
-        self.stack_depth_limit = sys.maxint
+        self.stack_depth_limit = 100000    # default limit
 
 global_state = StacklessData()
 

Modified: pypy/trunk/pypy/translator/stackless/test/test_depth.py
==============================================================================
--- pypy/trunk/pypy/translator/stackless/test/test_depth.py	(original)
+++ pypy/trunk/pypy/translator/stackless/test/test_depth.py	Wed Apr 15 17:47:50 2009
@@ -180,7 +180,6 @@
 
 def test_get_set_stack_depth_limit():
     def f():
-        assert rstack.get_stack_depth_limit() == sys.maxint
         rstack.set_stack_depth_limit(12321)
         return rstack.get_stack_depth_limit()
     data = llinterp_stackless_function(f, assert_unwind=False)



More information about the Pypy-commit mailing list