Author: Remi Meier <[email protected]>
Branch: stmgc-c7
Changeset: r73063:27ec5df9b53f
Date: 2014-08-26 18:13 +0200
http://bitbucket.org/pypy/pypy/changeset/27ec5df9b53f/
Log: break transactions during tracing
diff --git a/rpython/jit/metainterp/pyjitpl.py
b/rpython/jit/metainterp/pyjitpl.py
--- a/rpython/jit/metainterp/pyjitpl.py
+++ b/rpython/jit/metainterp/pyjitpl.py
@@ -189,7 +189,7 @@
@arguments("int")
def opimpl_stm_should_break_transaction(self, keep):
- # from rpython.rlib import rstm
+ from rpython.rlib import rstm
record_break = False
resbox = history.ConstInt(0)
@@ -199,13 +199,7 @@
resbox = history.BoxInt(0)
record_break = True
- ## XXX: not working yet. we are always inevitable when tracing
- # if we_are_translated() and rstm.is_inevitable():
- # # return BoxInt(1) if there is an inevitable
- # # transaction, because it's likely that there
- # # will always be an inevitable transaction here
- # resbox = history.BoxInt(1)
- # record_break = True
+ rstm.possible_transaction_break(0)
if record_break:
mi = self.metainterp
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit