[pypy-commit] stmgc c8-binary-trx-length-per-thread: Select short trx length to be 100B

tobweber pypy.commits at gmail.com
Thu Jun 15 10:28:19 EDT 2017


Author: Tobias Weber <tobias_weber89 at 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


More information about the pypy-commit mailing list