Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r1021:2203a869efb3 Date: 2014-03-15 17:24 +0100 http://bitbucket.org/pypy/stmgc/changeset/2203a869efb3/
Log: Fix for a remaining inevitable transaction diff --git a/c7/test/support.py b/c7/test/support.py --- a/c7/test/support.py +++ b/c7/test/support.py @@ -413,7 +413,10 @@ if lib._stm_in_transaction(tl): if self.current_thread != n: self.switch(n) - self.abort_transaction() + if lib.stm_is_inevitable(): + self.commit_transaction() # must succeed! + else: + self.abort_transaction() for tl in self.tls: lib.stm_unregister_thread_local(tl) lib.stm_teardown() _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit