Author: Tobias Weber <tobias_webe...@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*/, _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit