Author: Tobias Weber <tobias_webe...@gmx.de> Branch: c8-long-transactions Changeset: r2045:e2d2d2abc99c Date: 2017-04-26 21:01 +0200 http://bitbucket.org/pypy/stmgc/changeset/e2d2d2abc99c/
Log: Make single thread mode transactions inevitable only if there are less than two segments in use diff --git a/c8/stm/core.c b/c8/stm/core.c --- a/c8/stm/core.c +++ b/c8/stm/core.c @@ -1170,7 +1170,9 @@ segments_in_use)); if (segments_in_use <= single_thread_mode_segments_in_use_limit) { start_single_thread_mode(); - _stm_become_inevitable("execute_in_single_thread_mode"); + if (segments_in_use < 2) { + _stm_become_inevitable("execute_in_single_thread_mode"); + } } else if (stm_single_thread_mode_active) { end_single_thread_mode(); } _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit