[pypy-commit] stmgc c8-tcp-style-trx-length: Increase minimum trx length

tobweber pypy.commits at gmail.com
Tue Jul 11 11:07:19 EDT 2017


Author: Tobias Weber <tobias_weber89 at gmx.de>
Branch: c8-tcp-style-trx-length
Changeset: r2093:273315d7d544
Date: 2017-07-10 16:54 +0200
http://bitbucket.org/pypy/stmgc/changeset/273315d7d544/

Log:	Increase minimum trx length

diff --git a/c8/stm/nursery.c b/c8/stm/nursery.c
--- a/c8/stm/nursery.c
+++ b/c8/stm/nursery.c
@@ -21,8 +21,8 @@
 #define LARGE_FILL_MARK_NURSERY_BYTES   0x1000000000L
 // #define LARGE_FILL_MARK_NURSERY_BYTES   0x1000000000000000L
 
-// corresponds to ~7 bytes nursery fill
-#define STM_MIN_RELATIVE_TRANSACTION_LENGTH (0.0000000001)
+// corresponds to ~700 bytes nursery fill
+#define STM_MIN_RELATIVE_TRANSACTION_LENGTH (0.00000001)
 
 static double get_new_transaction_length(stm_thread_local_t *tl, bool aborts) {
     const int multiplier = 100;
@@ -550,7 +550,7 @@
     pseg->pub.nursery_mark -= nursery_used;
 
     if (pseg->commit_if_not_atomic
-        // && pseg->transaction_state == TS_INEVITABLE // TODO why does this break the mechanism? 
+        // && pseg->transaction_state == TS_INEVITABLE // TODO why does this break the mechanism?
         && pseg->pub.running_thread->self_or_0_if_atomic != 0) {
         // transaction is inevitable, not atomic, and commit has been signalled by waiting thread: commit immediately
         pseg->pub.nursery_mark = 0;


More information about the pypy-commit mailing list