[pypy-svn] r78082 - pypy/trunk/pypy/jit/metainterp
arigo at codespeak.net
arigo at codespeak.net
Tue Oct 19 15:41:37 CEST 2010
Author: arigo
Date: Tue Oct 19 15:41:35 2010
New Revision: 78082
Modified:
pypy/trunk/pypy/jit/metainterp/warmstate.py
Log:
Support an infinite threshold (set to -1).
Modified: pypy/trunk/pypy/jit/metainterp/warmstate.py
==============================================================================
--- pypy/trunk/pypy/jit/metainterp/warmstate.py (original)
+++ pypy/trunk/pypy/jit/metainterp/warmstate.py Tue Oct 19 15:41:35 2010
@@ -176,6 +176,9 @@
meth(default_value)
def set_param_threshold(self, threshold):
+ if threshold < 0:
+ self.increment_threshold = 0 # never reach the THRESHOLD_LIMIT
+ return
if threshold < 2:
threshold = 2
self.increment_threshold = (self.THRESHOLD_LIMIT // threshold) + 1
More information about the Pypy-commit
mailing list