Skip to content

Commit 0eb7051

Browse files
committed
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 <[email protected]> Run-TryBot: Michael Pratt <[email protected]> Reviewed-by: Michael Knyszek <[email protected]>
1 parent e1036a7 commit 0eb7051

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sync/atomic/doc.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ import (
4646
//
4747
// On non-Linux ARM, the 64-bit functions use instructions unavailable before the ARMv6k core.
4848
//
49-
// On ARM, 386, and 32-bit MIPS, it is the caller's responsibility
50-
// to arrange for 64-bit alignment of 64-bit words accessed atomically.
49+
// On ARM, 386, and 32-bit MIPS, it is the caller's responsibility to arrange
50+
// for 64-bit alignment of 64-bit words accessed atomically via the primitive
51+
// atomic functions (types Int64 and Uint64 are automatically aligned).
5152
// The first word in a variable or in an allocated struct, array, or slice can
5253
// be relied upon to be 64-bit aligned.
5354

0 commit comments

Comments
 (0)