[pypy-commit] stmgc c8-tcp-style-trx-length: Update trx length on commit and abort only
tobweber
pypy.commits at gmail.com
Tue Jul 11 11:07:21 EDT 2017
Author: Tobias Weber <tobias_weber89 at gmx.de>
Branch: c8-tcp-style-trx-length
Changeset: r2094:1de39189c503
Date: 2017-07-10 16:55 +0200
http://bitbucket.org/pypy/stmgc/changeset/1de39189c503/
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);
}
@@ -1383,6 +1382,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);
@@ -1554,6 +1555,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