From: Michael Pratt Date: Fri, 3 Jun 2022 17:47:10 +0000 (-0400) Subject: sync/atomic: note that alignment responsibility doesn't apply to types X-Git-Tag: go1.19beta1~81 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0eb7051aada1c8f115419122322002f47c1d0fea;p=gostls13.git sync/atomic: note that alignment responsibility doesn't apply to types For #50860. Change-Id: I8e117f00c5da230d0dc398aaed417fe5e64a5b22 Reviewed-on: https://go-review.googlesource.com/c/go/+/410127 TryBot-Result: Gopher Robot Run-TryBot: Michael Pratt Reviewed-by: Michael Knyszek --- diff --git a/src/sync/atomic/doc.go b/src/sync/atomic/doc.go index a7d5b46288..bb3b8f673e 100644 --- a/src/sync/atomic/doc.go +++ b/src/sync/atomic/doc.go @@ -46,8 +46,9 @@ import ( // // On non-Linux ARM, the 64-bit functions use instructions unavailable before the ARMv6k core. // -// On ARM, 386, and 32-bit MIPS, it is the caller's responsibility -// to arrange for 64-bit alignment of 64-bit words accessed atomically. +// On ARM, 386, and 32-bit MIPS, it is the caller's responsibility to arrange +// for 64-bit alignment of 64-bit words accessed atomically via the primitive +// atomic functions (types Int64 and Uint64 are automatically aligned). // The first word in a variable or in an allocated struct, array, or slice can // be relied upon to be 64-bit aligned.