[pypy-commit] pypy jitcounter-on-function: the-other-way-around. Fixes test_ajit

fijal noreply at buildbot.pypy.org
Thu Jun 16 10:09:33 CEST 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: jitcounter-on-function
Changeset: r44962:25a019b8cd68
Date: 2011-06-16 09:55 +0200
http://bitbucket.org/pypy/pypy/changeset/25a019b8cd68/

Log:	the-other-way-around. Fixes test_ajit

diff --git a/pypy/jit/metainterp/warmspot.py b/pypy/jit/metainterp/warmspot.py
--- a/pypy/jit/metainterp/warmspot.py
+++ b/pypy/jit/metainterp/warmspot.py
@@ -439,7 +439,7 @@
         can_inline = state.can_inline_greenargs
         num_green_args = jd.num_green_args
         def maybe_enter_from_start(*args):
-            maybe_compile_and_run(can_inline(*args[:num_green_args]), *args)
+            maybe_compile_and_run(not can_inline(*args[:num_green_args]), *args)
         maybe_enter_from_start._always_inline_ = True
         jd._maybe_enter_from_start_fn = maybe_enter_from_start
 


More information about the pypy-commit mailing list