[pypy-commit] pypy stm-thread-2: Ignore for now jitdrivers with autoreds.

arigo noreply at buildbot.pypy.org
Thu Feb 14 15:49:30 CET 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: stm-thread-2
Changeset: r61235:851ee1a2522d
Date: 2013-02-14 12:51 +0100
http://bitbucket.org/pypy/pypy/changeset/851ee1a2522d/

Log:	Ignore for now jitdrivers with autoreds.

diff --git a/rpython/translator/stm/jitdriver.py b/rpython/translator/stm/jitdriver.py
--- a/rpython/translator/stm/jitdriver.py
+++ b/rpython/translator/stm/jitdriver.py
@@ -17,7 +17,13 @@
             op = block.operations[i]
             if (op.opname == 'jit_marker' and
                     op.args[0].value == 'jit_merge_point'):
-                found.append((block, i))
+                jitdriver = op.args[1].value
+                if not jitdriver.autoreds:
+                    found.append((block, i))
+                else:
+                    from rpython.translator.c.support import log
+                    log.WARNING("ignoring jitdriver with autoreds in %r" % (
+                        graph,))        # XXX XXX!
     if found:
         assert len(found) == 1, "several jit_merge_point's in %r" % (graph,)
         return found[0]
@@ -83,7 +89,7 @@
         assert op_jitmarker.opname == 'jit_marker'
         assert op_jitmarker.args[0].value == 'jit_merge_point'
         jitdriver = op_jitmarker.args[1].value
-        assert not jitdriver.autoreds    # XXX
+        assert not jitdriver.autoreds    # fix me
 
     def split_after_jit_merge_point(self, (portalblock, portalopindex)):
         link = split_block(None, portalblock, portalopindex + 1)


More information about the pypy-commit mailing list