Author: Armin Rigo <[email protected]>
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))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit