This is the mail archive of the glibc-bugs@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]

[Bug nptl/16657] Lock elision breaks pthread_mutex_trylock


https://sourceware.org/bugzilla/show_bug.cgi?id=16657

Rich Felker <bugdal at aerifal dot cx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugdal at aerifal dot cx

--- Comment #2 from Rich Felker <bugdal at aerifal dot cx> ---
This patch looks inconsistent with the comment that happened to get quoted in
it from line 33:

/* We don't force elision in trylock, because this can lead to inconsistent
   lock state if the lock was actually busy.  */

There was a huge thread on the mailing list about elision and trylock with
normal-type mutexes at the time elision was added, and I'm highly skeptical of
such a trivial-looking fix; it seems to break trylock semantics.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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