Author: Armin Rigo <[email protected]>
Branch: stmgc-c7
Changeset: r75568:08f82ebbfe1c
Date: 2015-01-28 17:34 +0100
http://bitbucket.org/pypy/pypy/changeset/08f82ebbfe1c/
Log: Meh, set() is not RPython
diff --git a/rpython/jit/metainterp/memmgr.py b/rpython/jit/metainterp/memmgr.py
--- a/rpython/jit/metainterp/memmgr.py
+++ b/rpython/jit/metainterp/memmgr.py
@@ -102,7 +102,7 @@
# of one loop, and only in corner cases.
from rpython.jit.metainterp.history import JitCellToken
stm_alive_loops = self.stm_alive_loops
- keep_loops = set()
+ keep_loops = {}
#
# all keys in 'stm_alive_loops' should be in the following range
old_count = self.stm_lowest_key
@@ -120,7 +120,7 @@
looptoken =
annlowlevel.cast_gcref_to_instance(JitCellToken,
gcref)
if self._must_keep_loop(looptoken):
- keep_loops.add(looptoken)
+ keep_loops[looptoken] = None
newtotal = len(keep_loops)
#
# now re-add loops with key numbers that *end* at 'new_count'
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit