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

Issue 131580043: code review 131580043: runtime: Start and stop individual goroutines at gc saf... (Closed)

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

Description

runtime: Start and stop individual goroutines at gc safepoints Code to bring goroutines to a gc safepoint one at a time, do some work such as scanning, and restart the goroutine, and then move on to the next goroutine. Currently this code does not do much useful work but this infrastructure will be critical to future concurrent GC work. Fixed comments reviewers.

Patch Set 1 #

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

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

Total comments: 33

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

Total comments: 11

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

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

Patch Set 7 : diff -r 64d62375e7388afb5f049442321c026186d7679b https://code.google.com/p/go/ #

Patch Set 8 : diff -r 64d62375e7388afb5f049442321c026186d7679b https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -10 lines) Patch
M src/pkg/runtime/mgc0.c View 1 2 3 4 chunks +37 lines, -2 lines 0 comments Download
M src/pkg/runtime/proc.c View 1 2 3 4 5 6 chunks +200 lines, -6 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 2 3 4 chunks +17 lines, -2 lines 0 comments Download
M src/pkg/runtime/stack.c View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 12
rlh
Hello golang-codereviews@googlegroups.com (cc: dvyukov@google.com, rsc@golang.org), I'd like you to review this change to https://code.google.com/p/go/
10 years, 6 months ago (2014-08-28 20:11:49 UTC) #1
rsc
Partial review. Haven't looked at queiesce (also can't spell it) yet. https://codereview.appspot.com/131580043/diff/40001/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): ...
10 years, 6 months ago (2014-08-29 19:33:51 UTC) #2
dvyukov
https://codereview.appspot.com/131580043/diff/40001/src/pkg/runtime/runtime.h File src/pkg/runtime/runtime.h (right): https://codereview.appspot.com/131580043/diff/40001/src/pkg/runtime/runtime.h#newcode578 src/pkg/runtime/runtime.h:578: GCoff, // stop and start nop During C->Go conversion ...
10 years, 6 months ago (2014-08-30 07:21:40 UTC) #3
rsc
https://codereview.appspot.com/131580043/diff/40001/src/pkg/runtime/runtime.h File src/pkg/runtime/runtime.h (right): https://codereview.appspot.com/131580043/diff/40001/src/pkg/runtime/runtime.h#newcode578 src/pkg/runtime/runtime.h:578: GCoff, // stop and start nop No, do NOT ...
10 years, 6 months ago (2014-08-30 17:34:51 UTC) #4
rsc
https://codereview.appspot.com/131580043/diff/40001/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/131580043/diff/40001/src/pkg/runtime/proc.c#newcode818 src/pkg/runtime/proc.c:818: uint32 activeglen = runtime·allglen; uint32 activeglen; <blank line> activeglen ...
10 years, 6 months ago (2014-09-02 20:33:01 UTC) #5
rlh
I have addressed all comments. https://codereview.appspot.com/131580043/diff/40001/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): https://codereview.appspot.com/131580043/diff/40001/src/pkg/runtime/mgc0.c#newcode749 src/pkg/runtime/mgc0.c:749: if(runtime·readgstatus(gp)&Gscan != Gscan) { ...
10 years, 6 months ago (2014-09-02 21:31:49 UTC) #6
rlh
Hello golang-codereviews@googlegroups.com, rsc@golang.org, dvyukov@google.com (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years, 6 months ago (2014-09-02 21:33:08 UTC) #7
rsc
https://codereview.appspot.com/131580043/diff/60001/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/131580043/diff/60001/src/pkg/runtime/proc.c#newcode650 src/pkg/runtime/proc.c:650: runtime·throw("stopg: gp->atomicstatus is not valid. "); remove '. ' ...
10 years, 6 months ago (2014-09-03 15:43:50 UTC) #8
rlh
Hello golang-codereviews@googlegroups.com, rsc@golang.org, dvyukov@google.com (cc: golang-codereviews@googlegroups.com), Please take another look.
10 years, 6 months ago (2014-09-03 16:06:03 UTC) #9
rsc
LGTM
10 years, 6 months ago (2014-09-03 16:06:10 UTC) #10
rlh
*** Submitted as https://code.google.com/p/go/source/detail?r=babfcf4bc458 *** runtime: Start and stop individual goroutines at gc safepoints Code ...
10 years, 6 months ago (2014-09-03 16:06:40 UTC) #11
gobot
10 years, 6 months ago (2014-09-03 16:32:28 UTC) #12
Message was sent while issue was closed.
This CL appears to have broken the windows-amd64-perf builder.
See http://build.golang.org/log/031f251092c09a401a908e4be00b2de8ed248214
Sign in to reply to this message.

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