File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,9 @@ import (
57
57
// On ARM, 386, and 32-bit MIPS, it is the caller's responsibility to arrange
58
58
// for 64-bit alignment of 64-bit words accessed atomically via the primitive
59
59
// atomic functions (types Int64 and Uint64 are automatically aligned).
60
- // The first word in a variable or in an allocated struct, array, or slice can
61
- // be relied upon to be 64-bit aligned.
60
+ // The first word in an allocated struct, array, or slice; in a global
61
+ // variable; or in a local variable (because the subject of all atomic operations
62
+ // will escape to the heap) can be relied upon to be 64-bit aligned.
62
63
63
64
// SwapInt32 atomically stores new into *addr and returns the previous *addr value.
64
65
func SwapInt32 (addr * int32 , new int32 ) (old int32 )
You can’t perform that action at this time.
0 commit comments