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 libc/17428] lll_trylock barrier semantics when lock was not acquired differ between architectures


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

--- Comment #3 from Torvald Riegel <triegel at redhat dot com> ---
I do not remember who brought this up, but one can argue that the POSIX
requirements on synchronization only apply to function calls that do not fail. 
This seems sensible to me.  It means that trylocks that fail by returning EBUSY
do not imply any synchronization effects, so implementing lock acquisition
attempts in trylock with an atomic_compare_exchange_weak_acquire would be okay
(whose failure path has relaxed MO semantics and can fail spuriously).

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