diff options
| author | Russ Cox <rsc@golang.org> | 2013-08-13 16:16:05 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2013-08-13 16:16:05 -0400 |
| commit | 2642c6e24dd3d935d01270a0fa0a89de3d3dae69 (patch) | |
| tree | bedf842f66d2addb0ac108d06366988553ab79af /src | |
| parent | 74e78df107f9e6642ecfc6808f542e2625f7cfb2 (diff) | |
| download | go-2642c6e24dd3d935d01270a0fa0a89de3d3dae69.tar.xz | |
sync/atomic: update comment for ARM 64-bit atomics
They don't work on older chips, just like the x86-32 64-bit atomics.
Update #6134
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/12880043
Diffstat (limited to 'src')
| -rw-r--r-- | src/pkg/sync/atomic/doc.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/sync/atomic/doc.go b/src/pkg/sync/atomic/doc.go index 4651e2e8c2..34a2bc1390 100644 --- a/src/pkg/sync/atomic/doc.go +++ b/src/pkg/sync/atomic/doc.go @@ -47,6 +47,8 @@ import ( // BUG(rsc): On x86-32, the 64-bit functions use instructions unavailable before the Pentium MMX. // +// 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 // alignment of 64-bit words accessed atomically. The first word in a global // variable or in an allocated struct or slice can be relied upon to be |
