[pypy-commit] pypy stmgc-c7: Use the new API
arigo
noreply at buildbot.pypy.org
Fri Feb 20 09:20:59 CET 2015
Author: Armin Rigo <arigo at tunes.org>
Branch: stmgc-c7
Changeset: r76007:5de6619fa6de
Date: 2015-02-20 09:20 +0100
http://bitbucket.org/pypy/pypy/changeset/5de6619fa6de/
Log: Use the new API
diff --git a/rpython/rtyper/rtyper.py b/rpython/rtyper/rtyper.py
--- a/rpython/rtyper/rtyper.py
+++ b/rpython/rtyper/rtyper.py
@@ -262,9 +262,10 @@
# try a version using the transaction module
self.log.event('specializing transactionally %d blocks' %
(len(pending),))
- with transaction.TransactionQueue():
- for block in pending:
- transaction.add(self.specialize_block, block)
+ tq = transaction.TransactionQueue()
+ for block in pending:
+ tq.add(self.specialize_block, block)
+ tq.run()
self.log.event('left transactional mode')
blockcount += len(pending)
self.already_seen.update(dict.fromkeys(pending, True))
More information about the pypy-commit
mailing list