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

Issue 101330056: code review 101330056: doc: ban data races

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 10 months ago by dvyukov
Modified:
9 years, 4 months ago
Reviewers:
dfc
CC:
golang-codereviews, dfc, iant, kcc1, hudsonr_google.com, gobot, rsc, bradfitz, btracey, khr, r
Visibility:
Public.

Description

doc: ban data races The current wording tries to give at least some guarantees to programs with data races. This is (1) not very useful, as races on primitive types can be easily fixed using sync/atomic package, (2) most likely is not implemented, in particular in gccgo which I believe assumes race-free programs, (3) can inhibit useful optimizations in future (e.g. code generation optimizations or concurrent garbage collection). I believe this classifies as "bug fix" with respect to Go1 promise.

Patch Set 1 #

Patch Set 2 : diff -r a4f413948849 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r a4f413948849 https://dvyukov%40google.com@code.google.com/p/go/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -71 lines) Patch
M doc/go_mem.html View 1 5 chunks +14 lines, -71 lines 1 comment Download

Messages

Total messages: 16
dvyukov
Hello golang-codereviews@googlegroups.com (cc: khr@golang.org, r@golang.org, rsc@golang.org), I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
9 years, 10 months ago (2014-06-21 23:37:02 UTC) #1
dfc
I agree with these points, I think this should land (I'm deliberately avoid those four ...
9 years, 10 months ago (2014-06-22 07:39:02 UTC) #2
iant
https://codereview.appspot.com/101330056/diff/40001/doc/go_mem.html File doc/go_mem.html (right): https://codereview.appspot.com/101330056/diff/40001/doc/go_mem.html#newcode63 doc/go_mem.html:63: Any such data race results in <i>undefined behavior</i>. Perhaps ...
9 years, 10 months ago (2014-06-23 03:12:52 UTC) #3
gobot
R=rsc@golang.org (assigned by r@golang.org)
9 years, 10 months ago (2014-06-23 22:38:58 UTC) #4
rsc
I am inclined to set a moratorium on all changes to this document. Nothing about ...
9 years, 10 months ago (2014-06-23 22:58:33 UTC) #5
dvyukov
Ian, can you confirm that gccgo implements current guarantees for racing memory accesses? If the ...
9 years, 10 months ago (2014-06-24 00:01:39 UTC) #6
rsc
If I could, I would replace this entire doc with Go Memory Model Use locks ...
9 years, 10 months ago (2014-06-24 00:04:37 UTC) #7
r
I'd be happy to start the document with: Go Memory Model Use locks and channels. ...
9 years, 10 months ago (2014-06-24 00:07:09 UTC) #8
dfc
LGTM. On Tue, Jun 24, 2014 at 10:06 AM, Rob Pike <r@golang.org> wrote: > I'd ...
9 years, 10 months ago (2014-06-24 00:08:32 UTC) #9
dvyukov
It's not as simple. People can do weird things with channels as well. And then ...
9 years, 10 months ago (2014-06-24 00:17:01 UTC) #10
bradfitz
On Mon, Jun 23, 2014 at 5:06 PM, Rob Pike <r@golang.org> wrote: > I'd be ...
9 years, 10 months ago (2014-06-24 00:17:50 UTC) #11
btracey
On Jun 23, 2014, at 7:06 PM, Rob Pike <r@golang.org> wrote: > I'd be happy ...
9 years, 10 months ago (2014-06-24 00:40:11 UTC) #12
rsc
On Mon, Jun 23, 2014 at 8:16 PM, Dmitry Vyukov <dvyukov@google.com> wrote: > It's not ...
9 years, 10 months ago (2014-06-24 01:05:53 UTC) #13
iant
On Mon, Jun 23, 2014 at 5:01 PM, Dmitry Vyukov <dvyukov@google.com> wrote: > Ian, can ...
9 years, 10 months ago (2014-06-24 14:24:24 UTC) #14
rsc
Until there is an actual demonstrated need to change this doc, please don't. Each of ...
9 years, 10 months ago (2014-06-24 14:50:07 UTC) #15
gobot
9 years, 4 months ago (2014-12-19 05:04:35 UTC) #16
R=close

To the author of this CL:

The Go project has moved to Gerrit Code Review.

If this CL should be continued, please see the latest version of
https://golang.org/doc/contribute.html for instructions on
how to set up Git and the Go project's Gerrit codereview plugin,
and then create a new change with your current code.

If there has been discussion on this CL, please give a link to it
(golang.org/cl/101330056 is best) in the description in your
new CL.

Thanks very much.
Sign in to reply to this message.

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