summaryrefslogtreecommitdiff
path: root/libitm/beginend.cc
diff options
context:
space:
mode:
authortorvald <torvald@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-13 23:45:06 +0000
committertorvald <torvald@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-13 23:45:06 +0000
commit16cd83025fa0a794e4beec3647be492f08fe2d72 (patch)
tree8ed0df69ae3d1543fa4811e7cb7e72a8d99333b5 /libitm/beginend.cc
parentad76fe700e7812977c64513fd552a701571b3e3f (diff)
downloadgcc-16cd83025fa0a794e4beec3647be492f08fe2d72.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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183172 138bc75d-0d04-0410-961f-82ee72b054a4
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);