mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 03:30:27 +08:00
libitm: Don't enforce privatization safety if already in serial mode.
libitm/ * beginend.cc (GTM::gtm_thread::trycommit): Don't enforce privatization safety if already in serial mode. From-SVN: r182676
This commit is contained in:
parent
610e390135
commit
c898f7b85f
@ -1,3 +1,8 @@
|
||||
2011-12-24 Torvald Riegel <triegel@redhat.com>
|
||||
|
||||
* beginend.cc (GTM::gtm_thread::trycommit): Don't enforce
|
||||
privatization safety if already in serial mode.
|
||||
|
||||
2011-12-24 Torvald Riegel <triegel@redhat.com>
|
||||
|
||||
* beginend.cc (GTM::gtm_thread::restart): Add and handle
|
||||
|
@ -457,7 +457,12 @@ GTM::gtm_thread::trycommit ()
|
||||
// The transaction is now inactive. Everything that we still have to do
|
||||
// will not synchronize with other transactions anymore.
|
||||
if (state & gtm_thread::STATE_SERIAL)
|
||||
gtm_thread::serial_lock.write_unlock ();
|
||||
{
|
||||
gtm_thread::serial_lock.write_unlock ();
|
||||
// There are no other active transactions, so there's no need to
|
||||
// enforce privatization safety.
|
||||
priv_time = 0;
|
||||
}
|
||||
else
|
||||
gtm_thread::serial_lock.read_unlock (this);
|
||||
state = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user