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: "andi-bz at firstfloor dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 05 Mar 2014 00:32:05 +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
--- Comment #3 from Andi Kleen <andi-bz at firstfloor dot org> ---
The patch is wrong. Adds a race.
The return value of pthread_mutex_destroy is undefined. I originally couldn't
find any software that cares about this, so it was changed. If someone really
cares about the return value the "right" change would be to add an abort to
destroy.
--
You are receiving this mail because:
You are on the CC list for the bug.