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

--- 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.


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