From 0eb7051aada1c8f115419122322002f47c1d0fea Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Fri, 3 Jun 2022 13:47:10 -0400 Subject: [PATCH] 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 --- src/sync/atomic/doc.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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.