Page MenuHomeFreeBSD

Add LSE-based atomic(9) implementations.
ClosedPublic

Authored by markj on Jan 22 2020, 8:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 13, 9:03 PM
Unknown Object (File)
Sep 16 2025, 2:02 PM
Unknown Object (File)
Sep 10 2025, 1:16 PM
Unknown Object (File)
Sep 1 2025, 4:17 AM
Unknown Object (File)
Aug 19 2025, 1:01 PM
Unknown Object (File)
Aug 13 2025, 8:25 AM
Unknown Object (File)
Aug 10 2025, 11:40 PM
Unknown Object (File)
Aug 10 2025, 5:42 PM

Details

Summary

These make use of the cas*, ld* and swp instructions added in ARMv8.1.
Testing shows them to be significantly more performant than LL/SC-based
implementations.

These were mostly written by Ali Saidi. I did atomic_testand*() and
made atomic_(set|clear|add|subtract)_* a bit simpler.

No functional change here since the wrappers still unconditionally
select the _llsc variants.

Submitted by: Ali Saidi <alisaidi@amazon.com> (original version)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable