Author: Tobias Weber <tobias_webe...@gmx.de>
Branch: c8-adaptive-trx-length-per-thread
Changeset: r2124:2f4291869a47
Date: 2017-07-10 16:55 +0200
http://bitbucket.org/pypy/stmgc/changeset/2f4291869a47/

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);
     }
@@ -1378,6 +1377,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);
 
@@ -1549,6 +1550,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*/,
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to