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

Issue 4241041: code review 4241041: sync/atomic: new package (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years ago by rsc
Modified:
14 years ago
Reviewers:
CC:
gri, iant, r, r2, golang-dev
Visibility:
Public.

Description

sync/atomic: new package Fixes issue 170.

Patch Set 1 #

Patch Set 2 : diff -r 06b81b9faf7a https://go.googlecode.com/hg/ #

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

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

Patch Set 5 : diff -r d9ff478c4ed3 https://go.googlecode.com/hg/ #

Total comments: 21

Patch Set 6 : diff -r d9ff478c4ed3 https://go.googlecode.com/hg/ #

Total comments: 3

Patch Set 7 : diff -r d9ff478c4ed3 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 035720db5bdc https://go.googlecode.com/hg #

Total comments: 1

Patch Set 9 : diff -r b5fbdfb23f4f https://go.googlecode.com/hg #

Patch Set 10 : diff -r b5fbdfb23f4f https://go.googlecode.com/hg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+807 lines, -0 lines) Patch
M src/pkg/Makefile View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A src/pkg/sync/atomic/Makefile View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
A src/pkg/sync/atomic/asm_386.s View 1 2 3 4 5 1 chunk +87 lines, -0 lines 0 comments Download
A src/pkg/sync/atomic/asm_amd64.s View 1 2 3 4 5 6 7 1 chunk +59 lines, -0 lines 0 comments Download
A src/pkg/sync/atomic/asm_arm.s View 1 2 3 4 5 1 chunk +78 lines, -0 lines 0 comments Download
A src/pkg/sync/atomic/atomic_test.go View 1 2 3 4 5 6 7 8 1 chunk +506 lines, -0 lines 0 comments Download
A src/pkg/sync/atomic/doc.go View 1 2 3 4 5 6 7 8 1 chunk +58 lines, -0 lines 0 comments Download

Messages

Total messages: 15
rsc
Hello gri, iant, r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years ago (2011-02-25 06:04:49 UTC) #1
r
does/should this affect the implementation of sync? http://codereview.appspot.com/4241041/diff/1002/src/pkg/Makefile File src/pkg/Makefile (right): http://codereview.appspot.com/4241041/diff/1002/src/pkg/Makefile#newcode134 src/pkg/Makefile:134: sync/atomic\ sure ...
14 years ago (2011-02-25 06:49:52 UTC) #2
rsc
On Fri, Feb 25, 2011 at 01:49, <r@golang.org> wrote: > does/should this affect the implementation ...
14 years ago (2011-02-25 07:02:19 UTC) #3
r2
On Feb 24, 2011, at 11:02 PM, Russ Cox wrote: > On Fri, Feb 25, ...
14 years ago (2011-02-25 08:05:24 UTC) #4
rsc
Hello gri, iant, r, r2 (cc: golang-dev@googlegroups.com), Please take another look.
14 years ago (2011-02-25 18:02:13 UTC) #5
rsc
I incorporated Rob's suggested comment, though I changed safely to correctly: this package is type-safe ...
14 years ago (2011-02-25 18:05:29 UTC) #6
r2
LGTM http://codereview.appspot.com/4241041/diff/12/src/pkg/sync/atomic/asm_linux_arm.s File src/pkg/sync/atomic/asm_linux_arm.s (right): http://codereview.appspot.com/4241041/diff/12/src/pkg/sync/atomic/asm_linux_arm.s#newcode8 src/pkg/sync/atomic/asm_linux_arm.s:8: // the kernel provides an appropriate compare-and-swap s/kernel/Linux ...
14 years ago (2011-02-25 18:08:06 UTC) #7
rsc
> http://codereview.appspot.com/4241041/diff/12/src/pkg/sync/atomic/asm_linux_arm.s#newcode15 > src/pkg/sync/atomic/asm_linux_arm.s:15: TEXT cas<>(SB),7,$0 > i don't remember what <> means. it means ...
14 years ago (2011-02-25 18:10:05 UTC) #8
r2
On Feb 25, 2011, at 10:10 AM, Russ Cox wrote: >> http://codereview.appspot.com/4241041/diff/12/src/pkg/sync/atomic/asm_linux_arm.s#newcode15 >> src/pkg/sync/atomic/asm_linux_arm.s:15: TEXT ...
14 years ago (2011-02-25 18:11:37 UTC) #9
gri
http://codereview.appspot.com/4241041/diff/1002/src/pkg/sync/atomic/asm_amd64.s File src/pkg/sync/atomic/asm_amd64.s (right): http://codereview.appspot.com/4241041/diff/1002/src/pkg/sync/atomic/asm_amd64.s#newcode6 src/pkg/sync/atomic/asm_amd64.s:6: JMP ·CompareAndSwapUint32(SB) I guess there's no "fallthrough" (two entry ...
14 years ago (2011-02-25 18:50:40 UTC) #10
rsc
http://codereview.appspot.com/4241041/diff/1002/src/pkg/sync/atomic/asm_amd64.s File src/pkg/sync/atomic/asm_amd64.s (right): http://codereview.appspot.com/4241041/diff/1002/src/pkg/sync/atomic/asm_amd64.s#newcode6 src/pkg/sync/atomic/asm_amd64.s:6: JMP ·CompareAndSwapUint32(SB) On 2011/02/25 18:50:41, gri wrote: > I ...
14 years ago (2011-02-25 18:54:51 UTC) #11
rsc
PTAL http://codereview.appspot.com/4241041/diff/1002/src/pkg/sync/atomic/atomic_test.go File src/pkg/sync/atomic/atomic_test.go (right): http://codereview.appspot.com/4241041/diff/1002/src/pkg/sync/atomic/atomic_test.go#newcode23 src/pkg/sync/atomic/atomic_test.go:23: // extend past the full word size. On ...
14 years ago (2011-02-25 19:04:41 UTC) #12
rsc
http://codereview.appspot.com/4241041/diff/1002/src/pkg/sync/atomic/doc.go File src/pkg/sync/atomic/doc.go (right): http://codereview.appspot.com/4241041/diff/1002/src/pkg/sync/atomic/doc.go#newcode8 src/pkg/sync/atomic/doc.go:8: // The compare-and-swap operation, implemented by the CompareAndSwap* On ...
14 years ago (2011-02-25 19:09:46 UTC) #13
gri
LGTM http://codereview.appspot.com/4241041/diff/3008/src/pkg/sync/atomic/atomic_test.go File src/pkg/sync/atomic/atomic_test.go (right): http://codereview.appspot.com/4241041/diff/3008/src/pkg/sync/atomic/atomic_test.go#newcode22 src/pkg/sync/atomic/atomic_test.go:22: // The struct field x.o checks that the ...
14 years ago (2011-02-25 19:28:22 UTC) #14
rsc
14 years ago (2011-02-25 19:29:40 UTC) #15
*** Submitted as 9857d5ce1506 ***

sync/atomic: new package

Fixes issue 170.

R=gri, iant, r, r2
CC=golang-dev
http://codereview.appspot.com/4241041
Sign in to reply to this message.

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