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)
Fri, Feb 7, 5:33 AM
Unknown Object (File)
Jan 12 2025, 6:41 AM
Unknown Object (File)
Nov 29 2024, 7:44 PM
Unknown Object (File)
Nov 26 2024, 3:11 AM
Unknown Object (File)
Oct 18 2024, 12:13 PM
Unknown Object (File)
Oct 18 2024, 12:13 PM
Unknown Object (File)
Oct 18 2024, 12:12 PM
Unknown Object (File)
Oct 18 2024, 12:12 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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28853
Build 26859: arc lint + arc unit