[pypy-svn] r79450 - pypy/trunk/pypy/jit/metainterp
arigo at codespeak.net
arigo at codespeak.net
Wed Nov 24 13:16:59 CET 2010
Author: arigo
Date: Wed Nov 24 13:16:57 2010
New Revision: 79450
Modified:
pypy/trunk/pypy/jit/metainterp/warmstate.py
Log:
Support "--jit threshold=0" to mean the same thing as
"--jit threshold=-1", i.e. "disable the JIT", and not the
same thing as "--jit threshold=2", i.e. "JIT as much as possible".
Modified: pypy/trunk/pypy/jit/metainterp/warmstate.py
==============================================================================
--- pypy/trunk/pypy/jit/metainterp/warmstate.py (original)
+++ pypy/trunk/pypy/jit/metainterp/warmstate.py Wed Nov 24 13:16:57 2010
@@ -202,7 +202,7 @@
meth(default_value)
def set_param_threshold(self, threshold):
- if threshold < 0:
+ if threshold <= 0:
self.increment_threshold = 0 # never reach the THRESHOLD_LIMIT
return
if threshold < 2:
More information about the Pypy-commit
mailing list