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

Issue 7698045: code review 7698045: effective_go.html: fix semaphore example (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by r
Modified:
12 years, 1 month ago
Reviewers:
CC:
golang-dev, dvyukov, adg1
Visibility:
Public.

Description

effective_go.html: fix semaphore example It didn't work properly according to the Go memory model. Fixes issue 5023.

Patch Set 1 #

Total comments: 3

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -9 lines) Patch
M doc/effective_go.html View 1 2 4 chunks +47 lines, -9 lines 0 comments Download

Messages

Total messages: 8
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
12 years, 1 month ago (2013-03-11 18:36:23 UTC) #1
dvyukov
https://codereview.appspot.com/7698045/diff/1/src/pkg/debug/macho/file.go File src/pkg/debug/macho/file.go (right): https://codereview.appspot.com/7698045/diff/1/src/pkg/debug/macho/file.go#newcode146 src/pkg/debug/macho/file.go:146: // not have the correct format for an object ...
12 years, 1 month ago (2013-03-11 18:50:39 UTC) #2
dvyukov
https://codereview.appspot.com/7698045/diff/1/doc/effective_go.html File doc/effective_go.html (right): https://codereview.appspot.com/7698045/diff/1/doc/effective_go.html#newcode2901 doc/effective_go.html:2901: so during initialization we prime the channel by filling ...
12 years, 1 month ago (2013-03-11 18:52:13 UTC) #3
dvyukov
The change looks good, but I have the following suggestion while we are here: https://codereview.appspot.com/7698045/diff/1/doc/effective_go.html ...
12 years, 1 month ago (2013-03-11 19:02:59 UTC) #4
r
Hello golang-dev@googlegroups.com, dvyukov@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 1 month ago (2013-03-11 19:32:22 UTC) #5
adg1
LGTM On 12 Mar 2013 06:32, <r@golang.org> wrote: > Hello golang-dev@googlegroups.com, dvyukov@google.com (cc: > golang-dev@googlegroups.com), ...
12 years, 1 month ago (2013-03-12 01:06:17 UTC) #6
dvyukov
LGTM The second version has another serious advantage -- it applies backpressure on the incoming ...
12 years, 1 month ago (2013-03-12 04:10:02 UTC) #7
r
12 years, 1 month ago (2013-03-12 17:53:06 UTC) #8
*** Submitted as https://code.google.com/p/go/source/detail?r=1a329995118c ***

effective_go.html: fix semaphore example
It didn't work properly according to the Go memory model.
Fixes issue 5023.

R=golang-dev, dvyukov, adg
CC=golang-dev
https://codereview.appspot.com/7698045
Sign in to reply to this message.

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