Re: [trans-mem] Use per-transaction reader flags for the serial lock

2011-08-12 Thread Richard Henderson
On 08/05/2011 10:33 AM, Torvald Riegel wrote: > Use per-transaction reader flags for the serial lock (gtm_rwlock). > > * config/posix/rwlock.cc (gtm_rwlock::read_lock): Changed locking > implementation. > (gtm_rwlock::read_unlock): Same. > (gtm_rwlock::write_lock_ge

Re: [trans-mem] Use per-transaction reader flags for the serial lock

2011-08-12 Thread Richard Henderson
On 08/09/2011 05:01 AM, Torvald Riegel wrote: > Maintain a list of all threads' transactions. > > * libitm_i.h (next_tx): Add list of all threads' transaction. > * beginend.cc (GTM::gtm_transaction::begin_transaction): Register > transaction with list of transactions and

Re: [trans-mem] Use per-transaction reader flags for the serial lock

2011-08-09 Thread Torvald Riegel
On Fri, 2011-08-05 at 19:33 +0200, Torvald Riegel wrote: > patch8: > > The first patch merely keeps a list of all threads with transactions, > registering and deregistering gtm_transaction objects during their > construction and destruction. The aligment attribute for the start of > the shared par

[trans-mem] Use per-transaction reader flags for the serial lock

2011-08-05 Thread Torvald Riegel
This is a two-piece patch set. patch8: The first patch merely keeps a list of all threads with transactions, registering and deregistering gtm_transaction objects during their construction and destruction. The aligment attribute for the start of the shared part of a gtm_transaction object relies