Author: Remi Meier <[email protected]>
Branch: stmgc-c8
Changeset: r80996:44379f7fa2ab
Date: 2015-11-27 12:21 +0100
http://bitbucket.org/pypy/pypy/changeset/44379f7fa2ab/
Log: fix horrible performance
diff --git a/rpython/translator/stm/inevitable.py
b/rpython/translator/stm/inevitable.py
--- a/rpython/translator/stm/inevitable.py
+++ b/rpython/translator/stm/inevitable.py
@@ -206,8 +206,10 @@
else:
assert op not in self.turn_inevitable_ops
#
- if self.break_analyzer.analyze(op):
- # possible TX break in op
+ # check breaking ops here to be safe (e.g. if there
+ # was an op that turns inevitable, but also breaks)
+ if inevitable and self.break_analyzer.analyze(op):
+ # only check if inev, otherwise performance is horrible
inevitable = False
#
return inevitable
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit