[pypy-commit] stmgc c8-adaptive-trx-length-per-thread: Do not set transactions inevitable on start

tobweber pypy.commits at gmail.com
Wed May 17 11:31:54 EDT 2017


Author: Tobias Weber <tobias_weber89 at gmx.de>
Branch: c8-adaptive-trx-length-per-thread
Changeset: r2064:9ca9e3e987a3
Date: 2017-05-17 13:43 +0200
http://bitbucket.org/pypy/stmgc/changeset/9ca9e3e987a3/

Log:	Do not set transactions inevitable on start

diff --git a/c8/stm/core.c b/c8/stm/core.c
--- a/c8/stm/core.c
+++ b/c8/stm/core.c
@@ -1164,10 +1164,6 @@
     }
     _do_start_transaction(tl);
 
-    if (number_of_segments_in_use() < 2) {
-        stm_become_inevitable(tl, "single thread mode");
-    }
-
     STM_SEGMENT->nursery_mark = ((stm_char *)_stm_nursery_start +
                                         stm_get_transaction_length(tl));
     return repeat_count;


More information about the pypy-commit mailing list