Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2930)

Issue 4564053: code review 4564053: sync/atomic: fix check64 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by rsc
Modified:
13 years, 10 months ago
Reviewers:
CC:
golang-dev, bradfitz
Visibility:
Public.

Description

sync/atomic: fix check64 The LDREXD and STREXD instructions require aligned addresses, and the ARM stack is not guaranteed to be aligned during the check. This may cause other problems later (on the ARM not all 64-bit pointers may be 64-bit aligned) but at least the check is correct now.

Patch Set 1 #

Patch Set 2 : diff -r 73d526d94d1d https://go.googlecode.com/hg #

Patch Set 3 : diff -r a76c2f42924d https://go.googlecode.com/hg #

Patch Set 4 : diff -r 4bccc451c643 https://go.googlecode.com/hg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
M src/pkg/sync/atomic/asm_arm.s View 1 2 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 4
rsc
Hello golang-dev (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
13 years, 10 months ago (2011-06-02 16:14:48 UTC) #1
bradfitz
LGTM in that it fixes the xoom build at least. I don't claim to understand ...
13 years, 10 months ago (2011-06-02 16:30:37 UTC) #2
rsc
I expanded the CL description to explain better.
13 years, 10 months ago (2011-06-02 17:13:37 UTC) #3
rsc
13 years, 10 months ago (2011-06-02 17:13:53 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=efb9e78d32e7 ***

sync/atomic: fix check64

The LDREXD and STREXD instructions require
aligned addresses, and the ARM stack is not
guaranteed to be aligned during the check.
This may cause other problems later (on the ARM
not all 64-bit pointers may be 64-bit aligned)
but at least the check is correct now.

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/4564053
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b