summaryrefslogtreecommitdiff
path: root/libitm/beginend.cc
diff options
context:
space:
mode:
authorTorvald Riegel <triegel@redhat.com>2012-01-13 23:45:06 +0000
committerTorvald Riegel <torvald@gcc.gnu.org>2012-01-13 23:45:06 +0000
commit07b6642b935e1cd499a2aae071db06d845e39a8b (patch)
tree8ed0df69ae3d1543fa4811e7cb7e72a8d99333b5 /libitm/beginend.cc
parent4cce1836bde85844781736f0f87b51ae9393da5f (diff)
downloadgcc-07b6642b935e1cd499a2aae071db06d845e39a8b.tar.gz
libitm: Filter out undo writes that overlap with the libitm stack.
PR libitm/51855 * config/generic/tls.h (GTM::mask_stack_top): New. (GTM::mask_stack_bottom): Declare. * config/generic/tls.c (GTM::mask_stack_bottom): New. * local.cc (gtm_undolog::rollback): Filter out any updates that overlap the libitm stack. Add current transaction as parameter. * libitm_i.h (GTM::gtm_undolog::rollback): Adapt. * beginend.cc (GTM::gtm_thread::rollback): Adapt. * testsuite/libitm.c/stackundo.c: New test. From-SVN: r183172
Diffstat (limited to 'libitm/beginend.cc')
-rw-r--r--libitm/beginend.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libitm/beginend.cc b/libitm/beginend.cc
index fe14f32d110..08c2174ea67 100644
--- a/libitm/beginend.cc
+++ b/libitm/beginend.cc
@@ -327,7 +327,7 @@ GTM::gtm_thread::rollback (gtm_transaction_cp *cp, bool aborting)
// data. Because of the latter, we have to roll it back before any
// dispatch-specific rollback (which handles synchronization with other
// transactions).
- undolog.rollback (cp ? cp->undolog_size : 0);
+ undolog.rollback (this, cp ? cp->undolog_size : 0);
// Perform dispatch-specific rollback.
abi_disp()->rollback (cp);