[pypy-commit] pypy jit-targets: better way of checking that the retracecount is not exceeded
hakanardo
noreply at buildbot.pypy.org
Tue Nov 8 10:27:05 CET 2011
Author: Hakan Ardo <hakan at debian.org>
Branch: jit-targets
Changeset: r48905:178c618d4dc3
Date: 2011-11-08 08:06 +0100
http://bitbucket.org/pypy/pypy/changeset/178c618d4dc3/
Log: better way of checking that the retracecount is not exceeded
diff --git a/pypy/jit/metainterp/test/test_ajit.py b/pypy/jit/metainterp/test/test_ajit.py
--- a/pypy/jit/metainterp/test/test_ajit.py
+++ b/pypy/jit/metainterp/test/test_ajit.py
@@ -2704,7 +2704,8 @@
res = self.meta_interp(g, [10])
assert res == g(10)
# 1 preamble and 6 speciealized versions of each loop
- self.check_tree_loop_count(2*(1 + 6))
+ for loop in get_stats().loops:
+ assert len(loop.operations[0].getdescr().targeting_jitcell_token.target_tokens) <= 7
def test_nested_retrace(self):
More information about the pypy-commit
mailing list