Author: Armin Rigo <[email protected]>
Branch: stm-thread-2
Changeset: r57273:c12bcfe1fcbf
Date: 2012-09-10 14:28 +0200
http://bitbucket.org/pypy/pypy/changeset/c12bcfe1fcbf/
Log: Fix translation
diff --git a/pypy/jit/backend/llsupport/rewrite.py
b/pypy/jit/backend/llsupport/rewrite.py
--- a/pypy/jit/backend/llsupport/rewrite.py
+++ b/pypy/jit/backend/llsupport/rewrite.py
@@ -31,7 +31,7 @@
self.cpu = cpu
self.newops = []
self.known_lengths = {}
- self.recent_mallocs = set() # set of variables
+ self.recent_mallocs = {} # set of variables
def rewrite(self, operations):
# we can only remember one malloc since the next malloc can possibly
@@ -147,7 +147,7 @@
op = ResOperation(rop.CALL_MALLOC_GC, args, v_result, descr)
self.newops.append(op)
# mark 'v_result' as freshly malloced
- self.recent_mallocs.add(v_result)
+ self.recent_mallocs[v_result] = None
def gen_malloc_fixedsize(self, size, typeid, v_result):
"""Generate a CALL_MALLOC_GC(malloc_fixedsize_fn, ...).
@@ -247,7 +247,7 @@
self.newops.append(op)
self._previous_size = size
self._v_last_malloced_nursery = v_result
- self.recent_mallocs.add(v_result)
+ self.recent_mallocs[v_result] = None
return True
def gen_initialize_tid(self, v_newgcobj, tid):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit