Author: Tobias Weber <tobias_webe...@gmx.de>
Branch: c8-tcp-style-trx-length
Changeset: r2137:feed32340eb2
Date: 2017-07-23 17:29 +0200
http://bitbucket.org/pypy/stmgc/changeset/feed32340eb2/

Log:    Grow backoff cumulatively on repeated aborts

diff --git a/c8/stm/nursery.c b/c8/stm/nursery.c
--- a/c8/stm/nursery.c
+++ b/c8/stm/nursery.c
@@ -32,7 +32,7 @@
     backoff is <BACKOFF_COUNT> + b at default trx length,
     linear decrease to b at max trx length */
     const int b = 5;
-    tl->transaction_length_backoff =
+    tl->transaction_length_backoff +=
         (int)((BACKOFF_MULTIPLIER * -log10(rel_trx_len)) + b);
     // printf("thread %d, backoff %d\n", tl->thread_local_counter, 
tl->transaction_length_backoff);
     tl->linear_transaction_length_increment = rel_trx_len / (BACKOFF_COUNT + 
b);
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to