This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 4/6] Do not call _xend if no transaction is active.


Dominik Vogt <vogt@linux.vnet.ibm.com> writes:

> If pthread_mutex_unlock is called without the futex locked and no transaction
> open does not necessarily mean that pthread_mutex_lock has not been called.
> The transaction may have been closed in third party code.  While this _may_ be
> a bug in the software as a whole, unlock should not crash the program.
>
> Overall it is problematic to close transactions if you are not completely sure
> that you have opened the transaction yourself.  I see no general solution for
> this except installing coding rules for transactional code.

The XTEST is currently 4 cycles.
Also unlocking free locks is undefined.

The plan was to wait for user feedback if that is really needed because
of the performance overhead.

Nack for now.

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]