[pypy-commit] pypy stm: add 5 operations that cause a pypy-stm to go into inevitable mode

arigo noreply at buildbot.pypy.org
Fri Jan 20 10:54:44 CET 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: stm
Changeset: r51514:ceeb6b131e29
Date: 2012-01-20 10:54 +0100
http://bitbucket.org/pypy/pypy/changeset/ceeb6b131e29/

Log:	add 5 operations that cause a pypy-stm to go into inevitable mode

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
@@ -8,7 +8,8 @@
 
 ALWAYS_ALLOW_OPERATIONS = set([
     'direct_call', 'force_cast', 'keepalive', 'cast_ptr_to_adr',
-    'debug_print', 'debug_assert',
+    'debug_print', 'debug_assert', 'cast_opaque_ptr', 'hint',
+    'indirect_call', 'stack_current',
     ])
 ALWAYS_ALLOW_OPERATIONS |= set(lloperation.enum_tryfold_ops())
 
@@ -210,6 +211,8 @@
         flags = op.args[1].value
         return flags['flavor'] == 'gc'
 
+    stt_malloc_nonmovable = stt_malloc
+
     def stt_gc_stack_bottom(self, newoperations, op):
 ##        self.seen_gc_stack_bottom = True
         newoperations.append(op)


More information about the pypy-commit mailing list