Author: Armin Rigo <[email protected]>
Branch:
Changeset: r77972:3ede7f1f26c0
Date: 2015-06-09 09:01 +0200
http://bitbucket.org/pypy/pypy/changeset/3ede7f1f26c0/
Log: More test fix
diff --git a/rpython/jit/metainterp/optimizeopt/unroll.py
b/rpython/jit/metainterp/optimizeopt/unroll.py
--- a/rpython/jit/metainterp/optimizeopt/unroll.py
+++ b/rpython/jit/metainterp/optimizeopt/unroll.py
@@ -155,7 +155,10 @@
loop.operations = self.optimizer.get_newoperations()
if export_state:
jd_sd = self.optimizer.jitdriver_sd
- threshold = jd_sd.warmstate.disable_unrolling_threshold
+ try:
+ threshold = jd_sd.warmstate.disable_unrolling_threshold
+ except AttributeError: # tests only
+ threshold = sys.maxint
if len(loop.operations) > threshold:
if loop.operations[0].getopnum() == rop.LABEL:
# abandoning unrolling, too long
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit