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

Issue 6210071: code review 6210071: sync/atomic: use cas64 to implement {Load,Store,Add}{Ui... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by minux1
Modified:
11 years, 12 months ago
Reviewers:
CC:
golang-dev, rsc, dvyukov
Visibility:
Public.

Description

sync/atomic: use cas64 to implement {Load,Store,Add}{Uint,Int}64 on Linux/ARM Now with GOARM=5 our all.bash should pass on ARMv5 systems. Fixes issue 3331.

Patch Set 1 #

Patch Set 2 : diff -r 85e153815747 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 85e153815747 https://code.google.com/p/go/ #

Total comments: 1

Patch Set 4 : diff -r c7cbeae11662 https://code.google.com/p/go/ #

Patch Set 5 : diff -r c7cbeae11662 https://code.google.com/p/go/ #

Patch Set 6 : diff -r 87ef5e0baaf5 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -10 lines) Patch
A src/pkg/sync/atomic/64bit_linux_arm.go View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
M src/pkg/sync/atomic/asm_linux_arm.s View 1 2 3 4 3 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 12
minux1
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
12 years ago (2012-05-18 20:46:25 UTC) #1
minux1
The code might seem to be doing a lot of needless load/store. But the truth ...
12 years ago (2012-05-18 20:54:28 UTC) #2
rsc
If they're just calling CAS, it seems like you could write them in Go instead ...
12 years ago (2012-05-18 21:03:17 UTC) #3
minux1
PTAL. On Sat, May 19, 2012 at 5:02 AM, Russ Cox <rsc@golang.org> wrote: > If ...
12 years ago (2012-05-18 21:50:24 UTC) #4
dvyukov
Just out of curiosity http://codereview.appspot.com/6210071/diff/9002/src/pkg/sync/atomic/doc.go File src/pkg/sync/atomic/doc.go (right): http://codereview.appspot.com/6210071/diff/9002/src/pkg/sync/atomic/doc.go#newcode61 src/pkg/sync/atomic/doc.go:61: return addUint64(val, delta) Is it ...
12 years ago (2012-05-19 10:32:36 UTC) #5
minux1
On 2012/05/19 10:32:36, dvyukov wrote: http://codereview.appspot.com/6210071/diff/9002/src/pkg/sync/atomic/doc.go#newcode61 > src/pkg/sync/atomic/doc.go:61: return addUint64(val, delta) > Is it inlined? ...
12 years ago (2012-05-19 10:41:54 UTC) #6
dvyukov
On 2012/05/19 10:41:54, minux wrote: > On 2012/05/19 10:32:36, dvyukov wrote: > http://codereview.appspot.com/6210071/diff/9002/src/pkg/sync/atomic/doc.go#newcode61 > > ...
12 years ago (2012-05-19 11:00:33 UTC) #7
rsc
Hi I'd rather leave the existing assembly alone, and then in the ARM case where ...
12 years ago (2012-05-21 17:39:08 UTC) #8
minux1
PTAL. Also exchanged the code for CompareAndSwapUint64 and CompareAndSwapInt64, because we usually implement the unsigned ...
12 years ago (2012-05-21 18:20:22 UTC) #9
rsc
LGTM On Mon, May 21, 2012 at 2:20 PM, <minux.ma@gmail.com> wrote: > we usually implement ...
11 years, 12 months ago (2012-05-22 03:11:11 UTC) #10
minux1
*** Submitted as http://code.google.com/p/go/source/detail?r=1734b211731d *** sync/atomic: use cas64 to implement {Load,Store,Add}{Uint,Int}64 on Linux/ARM Now with ...
11 years, 12 months ago (2012-05-22 18:02:09 UTC) #11
minux1
11 years, 12 months ago (2012-05-22 18:03:51 UTC) #12
On 2012/05/22 03:11:11, rsc wrote:
> On Mon, May 21, 2012 at 2:20 PM,  <mailto:minux.ma@gmail.com> wrote:
> > we usually implement the
> > unsigned version, make the signed version jump to it.
> The signed and unsigned version are identical
> except for their type signatures, no?
Yes. I changed that for consistency with other functions.
Sign in to reply to this message.

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