mirror of
https://github.com/golang/go
synced 2024-10-04 15:09:59 +00:00
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>
This commit is contained in:
parent
c7026f9d14
commit
ca7c12d4c9
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue