Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r1623:7540c1f155d0 Date: 2015-02-15 14:35 +0100 http://bitbucket.org/pypy/stmgc/changeset/7540c1f155d0/
Log: another quite unsure attempt diff --git a/c8/stm/gcpage.c b/c8/stm/gcpage.c --- a/c8/stm/gcpage.c +++ b/c8/stm/gcpage.c @@ -563,10 +563,13 @@ struct stm_commit_log_entry_s *cl, *next; #ifndef NDEBUG - /* check that all segments are at the same revision: */ + /* check that all segments are at the same revision (or not running + a transaction at all): */ cl = get_priv_segment(0)->last_commit_log_entry; for (long i = 1; i < NB_SEGMENTS; i++) { - assert(get_priv_segment(i)->last_commit_log_entry == cl); + if (get_priv_segment(i)->transaction_state != TS_NONE) { + assert(get_priv_segment(i)->last_commit_log_entry == cl); + } } #endif _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit