This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/16657] Lock elision breaks pthread_mutex_trylock
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 04 Mar 2014 17:51:35 +0000
- Subject: [Bug nptl/16657] Lock elision breaks pthread_mutex_trylock
- Auto-submitted: auto-generated
- References: <bug-16657-131 at http dot sourceware dot org/bugzilla/>
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.