Author: Tobias Weber <tobias_webe...@gmx.de>
Branch: c8-binary-trx-length-per-thread
Changeset: r2077:e264072fb063
Date: 2017-06-15 16:27 +0200
http://bitbucket.org/pypy/stmgc/changeset/e264072fb063/

Log:    Select short trx length to be 100B

diff --git a/c8/stm/nursery.c b/c8/stm/nursery.c
--- a/c8/stm/nursery.c
+++ b/c8/stm/nursery.c
@@ -22,7 +22,7 @@
     double new = tl->relative_transaction_length;
     if (aborts) {
         tl->transaction_length_backoff = 3;
-        new = (double)DEFAULT_FILL_MARK_NURSERY_BYTES / 
LARGE_FILL_MARK_NURSERY_BYTES;
+        new = 100.0 / LARGE_FILL_MARK_NURSERY_BYTES;
     } else if (tl->transaction_length_backoff == 0) {
         new = 1;
     } else { // not abort and backoff != 0
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to