Author: Tobias Weber <tobias_webe...@gmx.de>
Branch: c8-tcp-style-trx-length
Changeset: r2122:f6be3fc14929
Date: 2017-07-16 13:38 +0200
http://bitbucket.org/pypy/stmgc/changeset/f6be3fc14929/

Log:    Introduce slow start mechanism

diff --git a/c8/stm/nursery.c b/c8/stm/nursery.c
--- a/c8/stm/nursery.c
+++ b/c8/stm/nursery.c
@@ -49,6 +49,10 @@
         if (previous < 1) {
             new = previous * multiplier;
         }
+        if (tl->linear_transaction_length_increment != 0) {
+            // thread had to abort before: slow start
+            set_backoff(tl, new);
+        }
     } else { // not abort and backoff != 0
         // in backoff, linear increase up to 1
         if (previous < 1) {
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to