[pypy-commit] pypy guard-compatible: Fix this for the case of a we_are_jitted() that is modified not

arigo pypy.commits at gmail.com
Tue May 24 04:52:37 EDT 2016


Author: Armin Rigo <arigo at tunes.org>
Branch: guard-compatible
Changeset: r84655:8815777374d3
Date: 2016-05-24 10:52 +0200
http://bitbucket.org/pypy/pypy/changeset/8815777374d3/

Log:	Fix this for the case of a we_are_jitted() that is modified not to
	return always False when untranslated

diff --git a/rpython/rlib/jit.py b/rpython/rlib/jit.py
--- a/rpython/rlib/jit.py
+++ b/rpython/rlib/jit.py
@@ -1209,7 +1209,9 @@
         return hop.gendirectcall(ll_record_exact_class, v_inst, v_cls)
 
 def _jit_conditional_call(condition, function, *args):
-    pass
+    "NOT_RPYTHON"
+    if condition:
+        function(*args)
 
 @specialize.call_location()
 def conditional_call(condition, function, *args):


More information about the pypy-commit mailing list