svn commit: r324926 - head/share/man/man9

Ian Lepore ian at freebsd.org
Mon Oct 23 16:28:31 UTC 2017


On Mon, 2017-10-23 at 16:14 +0000, Konstantin Belousov wrote:
> Author: kib
> Date: Mon Oct 23 16:14:55 2017
> New Revision: 324926
> URL: https://svnweb.freebsd.org/changeset/base/324926
> 
> Log:
>   Expand explanation of atomicity.
>   
>   Mention per-location total order, out of thin air, and torn writes
>   guarantees.  Mention C11 standard' memory model and one most important
>   FreeBSD additional requirement, that is aligned ordinary loads and
>   stores are atomic on processors.
>   
> [...]
> 
> +On all architectures supported by
> +.Fx ,
> +ordinary loads and stores of naturally aligned integer types
> +are atomic, as executed by the processor.

This is not true on arm{v6,v7}.  64-bit integer types can be atomically
loaded and stored with the appropriate functions from atomic.h, but are
not ordinarily so, regardless of alignment.  Smaller integer types do
meet this requirement.

-- Ian



More information about the svn-src-head mailing list