This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/15640] The ARM port of lll_unlock uses atomic compare and swap to release a lock
- From: "adeb at nvidia dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 15 Jul 2013 21:33:43 +0000
- Subject: [Bug nptl/15640] The ARM port of lll_unlock uses atomic compare and swap to release a lock
- Auto-submitted: auto-generated
- References: <bug-15640-131 at http dot sourceware dot org/bugzilla/>
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.