[pypy-svn] pypy default: make sure that we do not generate bridges because of checkinterval

antocuni commits-noreply at bitbucket.org
Mon Mar 14 11:38:46 CET 2011


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: 
Changeset: r42600:7a8c9e389116
Date: 2011-03-14 11:38 +0100
http://bitbucket.org/pypy/pypy/changeset/7a8c9e389116/

Log:	make sure that we do not generate bridges because of checkinterval

diff --git a/pypy/module/pypyjit/test_pypy_c/test_model.py b/pypy/module/pypyjit/test_pypy_c/test_model.py
--- a/pypy/module/pypyjit/test_pypy_c/test_model.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_model.py
@@ -29,6 +29,10 @@
         # write the snippet
         arglist = ', '.join(map(repr, args))
         with self.filepath.open("w") as f:
+            # we don't want to see the small bridges created
+            # by the checkinterval reaching the limit
+            f.write("import sys\n")
+            f.write("sys.setcheckinterval(10000000)\n")
             f.write(str(src) + "\n")
             f.write("print %s(%s)\n" % (funcname, arglist))
         #


More information about the Pypy-commit mailing list