]> Cypherpunks repositories - gostls13.git/commitdiff
sync/atomic: add 32-bit MIPS to the 64-bit alignment requirement
authorIan Lance Taylor <iant@golang.org>
Fri, 8 Feb 2019 00:55:17 +0000 (16:55 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 9 Feb 2019 23:07:07 +0000 (23:07 +0000)
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>

src/sync/atomic/doc.go

index 7c007d7a150c65c1c72db4b100e77480479500b5..108b76b8049039b990860057c01048a415f3271e 100644 (file)
@@ -47,7 +47,8 @@ import (
 //
 // On non-Linux ARM, the 64-bit functions use instructions unavailable before the ARMv6k core.
 //
-// On both ARM and x86-32, it is the caller's responsibility to arrange for 64-bit
+// On ARM, x86-32, and 32-bit MIPS,
+// it is the caller's responsibility to arrange for 64-bit
 // alignment of 64-bit words accessed atomically. The first word in a
 // variable or in an allocated struct, array, or slice can be relied upon to be
 // 64-bit aligned.