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/15640] The ARM port of lll_unlock uses atomic compare and swap to release a lock


http://sourceware.org/bugzilla/show_bug.cgi?id=15640

--- Comment #2 from Abhishek Deb <adeb at nvidia dot com> ---
On second thoughts, I think what is required is an atomic_exchange_rel and not
atomic_compare_and_exchange. Though lll_unlock uses atomic_exchange_rel, but
because atomic_exchange_rel was never defined for ARM, it gets defined to
atomic_compare_and_exhange_rel. I think atomic_exchange_rel could perhaps be
implemented with a pair of ldex, stex and a branch if the atomic exchange
failed.

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