Author: Remi Meier <remi.me...@inf.ethz.ch> Branch: Changeset: r1192:64e31b3d391b Date: 2014-04-29 09:28 +0200 http://bitbucket.org/pypy/stmgc/changeset/64e31b3d391b/
Log: Some other place where commit_soon may be a good idea. (it helps for raytrace, but it's mostly a workaround for a broken stm_should_break_transaction in pypy) diff --git a/c7/stm/nursery.c b/c7/stm/nursery.c --- a/c7/stm/nursery.c +++ b/c7/stm/nursery.c @@ -287,6 +287,12 @@ STM_PSEGMENT->minor_collect_will_commit_now = commit; if (!commit) { + /* We should commit soon, probably. This is kind of a + workaround for the broken stm_should_break_transaction of + pypy that doesn't want to commit any more after a minor + collection. It may, however, always be a good idea... */ + stmcb_commit_soon(); + /* 'STM_PSEGMENT->overflow_number' is used now by this collection, in the sense that it's copied to the overflow objects */ STM_PSEGMENT->overflow_number_has_been_used = true; _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit