Skip to content

Commit ca7c12d

Browse files
sync/atomic: add 32-bit MIPS to the 64-bit alignment requirement
runtime/internal/atomic/atomic_mipsx.go enforces 64-bit alignment. Change-Id: Ifdc36e1c0322827711425054d10f1c52425a13fa Reviewed-on: https://go-review.googlesource.com/c/161697 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
1 parent c7026f9 commit ca7c12d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sync/atomic/doc.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ import (
4747
//
4848
// On non-Linux ARM, the 64-bit functions use instructions unavailable before the ARMv6k core.
4949
//
50-
// On both ARM and x86-32, it is the caller's responsibility to arrange for 64-bit
50+
// On ARM, x86-32, and 32-bit MIPS,
51+
// it is the caller's responsibility to arrange for 64-bit
5152
// alignment of 64-bit words accessed atomically. The first word in a
5253
// variable or in an allocated struct, array, or slice can be relied upon to be
5354
// 64-bit aligned.

0 commit comments

Comments
 (0)