HomeFreeBSD

libspl: implement atomics in terms of atomics

Description

libspl: implement atomics in terms of atomics

This replaces the generic libspl atomic.c atomics implementation
with one based on builtin gcc atomics. This functionality was added
as an experimental feature in gcc 4.4. Today even CentOS 7 ships
with gcc 4.8 as the default compiler we can make this the default.

Furthermore, the builtin atomics are as good or better than our
hand-rolled implementation so it's reasonable to drop that custom code.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11904

Details

Provenance
наб <nabijaczleweli@nabijaczleweli.xyz>Authored on Apr 19 2021, 5:13 AM
GitHub <noreply@github.com>Committed on Apr 19 2021, 5:13 AM
Parents
rG50d9ff93dfdb: ZTS: Improve redundancy test scripts
Branches
Unknown
Tags
Unknown