diff options
author | Ian Lance Taylor <iant@golang.org> | 2019-02-07 16:55:17 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2019-02-09 23:07:07 +0000 |
commit | ca7c12d4c9eb4a19ca5103ec5763537cccbcc13b (patch) | |
tree | b50bf23f3454731ff4b4a891c949cb64ca2b52f1 /src/sync | |
parent | c7026f9d14795c7e50839cbcc37b04be65c4f7d7 (diff) | |
download | go-ca7c12d4c9eb4a19ca5103ec5763537cccbcc13b.tar.gz go-ca7c12d4c9eb4a19ca5103ec5763537cccbcc13b.zip |
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>
Diffstat (limited to 'src/sync')
-rw-r--r-- | src/sync/atomic/doc.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sync/atomic/doc.go b/src/sync/atomic/doc.go index 7c007d7a15..108b76b804 100644 --- a/src/sync/atomic/doc.go +++ b/src/sync/atomic/doc.go @@ -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. |