[pypy-commit] stmgc c8-binary-trx-length-per-thread: Update trx length on commit and abort only

tobweber pypy.commits at gmail.com
Fri Aug 4 05:53:48 EDT 2017


Author: Tobias Weber <tobias_weber89 at gmx.de>
Branch: c8-binary-trx-length-per-thread
Changeset: r2148:114803b15227
Date: 2017-07-10 16:55 +0200
http://bitbucket.org/pypy/stmgc/changeset/114803b15227/

Log:	Update trx length on commit and abort only

diff --git a/c8/stm/core.c b/c8/stm/core.c
--- a/c8/stm/core.c
+++ b/c8/stm/core.c
@@ -347,7 +347,6 @@
     }
 
     if (thread_local_for_logging != NULL) {
-        stm_transaction_length_handle_validation(thread_local_for_logging, needs_abort);
         stop_timer_and_publish_for_thread(
             thread_local_for_logging, STM_DURATION_VALIDATION);
     }
@@ -1380,6 +1379,8 @@
 
     s_mutex_unlock();
 
+    stm_transaction_length_handle_validation(thread_local_for_logging, false);
+
     stop_timer_and_publish_for_thread(
         thread_local_for_logging, STM_DURATION_COMMIT_EXCEPT_GC);
 
@@ -1551,6 +1552,8 @@
     did_abort = 1;
 #endif
 
+    stm_transaction_length_handle_validation(pseg->pub.running_thread, true);
+
     list_clear(pseg->objects_pointing_to_nursery);
     list_clear(pseg->old_objects_with_cards_set);
     LIST_FOREACH_R(pseg->large_overflow_objects, uintptr_t /*item*/,


More information about the pypy-commit mailing list