[pypy-commit] pypy stm-gc: Fix

arigo noreply at buildbot.pypy.org
Thu Feb 16 20:46:34 CET 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: stm-gc
Changeset: r52568:2ea8061c4a47
Date: 2012-02-16 20:45 +0100
http://bitbucket.org/pypy/pypy/changeset/2ea8061c4a47/

Log:	Fix

diff --git a/pypy/translator/stm/transform.py b/pypy/translator/stm/transform.py
--- a/pypy/translator/stm/transform.py
+++ b/pypy/translator/stm/transform.py
@@ -89,7 +89,8 @@
             newoperations.append(op)
             return
         if op.args[0].concretetype.TO._gckind == 'raw':
-            turn_inevitable(newoperations, op.opname + '-raw')
+            if not is_immutable(op):
+                turn_inevitable(newoperations, op.opname + '-raw')
             newoperations.append(op)
             return
         if is_immutable(op):
@@ -110,7 +111,8 @@
             newoperations.append(op)
             return
         if op.args[0].concretetype.TO._gckind == 'raw':
-            turn_inevitable(newoperations, op.opname + '-raw')
+            if not is_immutable(op):
+                turn_inevitable(newoperations, op.opname + '-raw')
             newoperations.append(op)
             return
         if is_immutable(op):


More information about the pypy-commit mailing list