aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/debug
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2014-10-28 15:57:33 -0400
committerAustin Clements <austin@google.com>2014-10-28 15:57:33 -0400
commit87b4149b22feb9d8d52da1730b455e39436a3a8d (patch)
tree18ab3a6f8079b14659188eb48b086542da23f168 /src/runtime/debug
parentc8f50b298cdf378889cff2a1b7355f7a1cb08a0a (diff)
downloadgo-87b4149b22feb9d8d52da1730b455e39436a3a8d.tar.xz
[dev.power64] runtime: fix atomicor8 for power64x
Power64 servers do not currently support sub-word size atomic memory access, so atomicor8 uses word size atomic access. However, previously atomicor8 made no attempt to align this access, resulting in errors. Fix this by aligning the pointer to a word boundary and shifting the value appropriately. Since atomicor8 is used in GC, add a test to runtime·check to make sure this doesn't break in the future. This also fixes an incorrect branch label, an incorrectly sized argument move, and adds argument names to help go vet. LGTM=rsc R=rsc, dave CC=golang-codereviews https://golang.org/cl/165820043
Diffstat (limited to 'src/runtime/debug')
0 files changed, 0 insertions, 0 deletions