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

Issue 133470043: code review 133470043: runtime: avoid race with forcegc helper (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 7 months ago by rsc
Modified:
9 years, 7 months ago
Reviewers:
gobot, dvyukov, rlh
CC:
rlh, golang-codereviews
Visibility:
Public.

Description

runtime: avoid race with forcegc helper While we are here, give the gc helper a real function name that will appear in stack traces.

Patch Set 1 #

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

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

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

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -19 lines) Patch
M src/pkg/runtime/proc.c View 1 1 chunk +6 lines, -3 lines 1 comment Download
M src/pkg/runtime/proc.go View 1 2 1 chunk +18 lines, -16 lines 0 comments Download

Messages

Total messages: 9
rsc
Hello rlh (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
9 years, 7 months ago (2014-09-02 20:23:34 UTC) #1
rlh
On 2014/09/02 20:23:34, rsc wrote: > Hello rlh (cc: mailto:golang-codereviews@googlegroups.com), > > I'd like you ...
9 years, 7 months ago (2014-09-02 21:00:25 UTC) #2
rsc
cc += dvyukov
9 years, 7 months ago (2014-09-02 21:33:39 UTC) #3
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=9227fb9e97fd *** runtime: avoid race with forcegc helper While we are here, ...
9 years, 7 months ago (2014-09-02 23:18:50 UTC) #4
gobot
This CL appears to have broken the linux-amd64-temp builder. See http://build.golang.org/log/25091c1ccd65a618d6eaf9594876c6309d84cff5
9 years, 7 months ago (2014-09-03 03:05:53 UTC) #5
dvyukov
https://codereview.appspot.com/133470043/diff/40002/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/133470043/diff/40002/src/pkg/runtime/proc.c#newcode2849 src/pkg/runtime/proc.c:2849: if(runtime·forcegc.g != nil) { there is no race here ...
9 years, 7 months ago (2014-09-03 03:44:15 UTC) #6
rsc
Somehow Rick saw a crash where forcegc.g was nil there. I agree with you that ...
9 years, 7 months ago (2014-09-03 14:28:09 UTC) #7
dvyukov
Such crash was possible before https://code.google.com/p/go/source/detail?r=711e11b79b481b9a5a9d51b993832f5d17cefeb3 I suspect that the crash happened in an old ...
9 years, 7 months ago (2014-09-03 14:39:08 UTC) #8
rsc
9 years, 7 months ago (2014-09-03 15:10:11 UTC) #9
On Wed, Sep 3, 2014 at 10:38 AM, Dmitry Vyukov <dvyukov@google.com> wrote:

> Such crash was possible before
>
>
https://code.google.com/p/go/source/detail?r=711e11b79b481b9a5a9d51b993832f5d...
> I suspect that the crash happened in an old client.
>

Yes, we just reached the same conclusion, and we confirmed that the crash
was showing the gchelper written in C. I will take out the change.

Russ
Sign in to reply to this message.

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