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

Issue 9754044: code review 9754044: runtime/gc: Run garbage collector on g0 stack (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by khr
Modified:
10 years, 11 months ago
Reviewers:
iant, dvyukov
CC:
golang-dev, cshapiro1, khr1, 0xe2.0x9a.0x9b_gmail.com, dvyukov, rsc, iant
Visibility:
Public.

Description

runtime/gc: Run garbage collector on g0 stack instead of regular g stack. We do this so that the g stack we're currently running on is no longer changing. Cuts the root set down a bit (g0 stacks are not scanned, and we don't need to scan gc's internal state). Also an enabler for copyable stacks.

Patch Set 1 #

Patch Set 2 : diff -r 65c110d95d91 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 3 : diff -r 65c110d95d91 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 4 : diff -r 65c110d95d91 https://khr%40golang.org@code.google.com/p/go/ #

Total comments: 5

Patch Set 5 : diff -r 65c110d95d91 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 6 : diff -r 65c110d95d91 https://khr%40golang.org@code.google.com/p/go/ #

Total comments: 6

Patch Set 7 : diff -r 65c110d95d91 https://khr%40golang.org@code.google.com/p/go/ #

Total comments: 1

Patch Set 8 : diff -r 65c110d95d91 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 9 : diff -r 2f00f3e66cac https://khr%40golang.org@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -49 lines) Patch
M src/pkg/runtime/mgc0.c View 1 2 3 4 5 6 7 8 7 chunks +71 lines, -49 lines 0 comments Download

Messages

Total messages: 14
khr
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://khr%40golang.org@code.google.com/p/go/
10 years, 11 months ago (2013-05-29 22:49:01 UTC) #1
cshapiro1
looks pretty good, just a few questions and comments https://codereview.appspot.com/9754044/diff/8001/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): https://codereview.appspot.com/9754044/diff/8001/src/pkg/runtime/mgc0.c#newcode1902 src/pkg/runtime/mgc0.c:1902: ...
10 years, 11 months ago (2013-05-29 23:56:58 UTC) #2
cshapiro1
https://codereview.appspot.com/9754044/diff/8001/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): https://codereview.appspot.com/9754044/diff/8001/src/pkg/runtime/mgc0.c#newcode1458 src/pkg/runtime/mgc0.c:1458: // Scanning our own stack: start at &gp. Is ...
10 years, 11 months ago (2013-05-30 00:07:21 UTC) #3
khr1
On Wed, May 29, 2013 at 4:56 PM, <cshapiro@google.com> wrote: > looks pretty good, just ...
10 years, 11 months ago (2013-05-30 04:03:14 UTC) #4
khr1
On Wed, May 29, 2013 at 5:07 PM, <cshapiro@google.com> wrote: > > https://codereview.appspot.**com/9754044/diff/8001/src/pkg/** > runtime/mgc0.c<https://codereview.appspot.com/9754044/diff/8001/src/pkg/runtime/mgc0.c> ...
10 years, 11 months ago (2013-05-30 04:13:06 UTC) #5
atom
On 2013/05/30 04:03:14, khr1 wrote: > On Wed, May 29, 2013 at 4:56 PM, <mailto:cshapiro@google.com> ...
10 years, 11 months ago (2013-05-30 07:25:35 UTC) #6
dvyukov
https://codereview.appspot.com/9754044/diff/15001/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): https://codereview.appspot.com/9754044/diff/15001/src/pkg/runtime/mgc0.c#newcode1458 src/pkg/runtime/mgc0.c:1458: runtime·throw("can't scan our own stack\n"); remove \n in throw ...
10 years, 11 months ago (2013-05-30 14:49:40 UTC) #7
khr1
On Thu, May 30, 2013 at 7:49 AM, <dvyukov@google.com> wrote: > > https://codereview.appspot.**com/9754044/diff/15001/src/** > pkg/runtime/mgc0.c<https://codereview.appspot.com/9754044/diff/15001/src/pkg/runtime/mgc0.c> ...
10 years, 11 months ago (2013-05-30 15:57:55 UTC) #8
rsc
On Thu, May 30, 2013 at 11:57 AM, Keith Randall <khr@google.com> wrote: > So the ...
10 years, 11 months ago (2013-05-30 16:01:27 UTC) #9
dvyukov
LGTM!
10 years, 11 months ago (2013-05-31 04:02:41 UTC) #10
cshapiro1
Minor comment... https://codereview.appspot.com/9754044/diff/16002/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): https://codereview.appspot.com/9754044/diff/16002/src/pkg/runtime/mgc0.c#newcode1991 src/pkg/runtime/mgc0.c:1991: // now that gc is done and ...
10 years, 11 months ago (2013-05-31 04:05:18 UTC) #11
khr1
On Thu, May 30, 2013 at 9:05 PM, <cshapiro@google.com> wrote: > Minor comment... > > ...
10 years, 11 months ago (2013-05-31 17:06:39 UTC) #12
iant
LGTM
10 years, 11 months ago (2013-06-01 00:50:44 UTC) #13
khr
10 years, 11 months ago (2013-06-01 03:43:36 UTC) #14
*** Submitted as https://code.google.com/p/go/source/detail?r=e2c60757c60d ***

runtime/gc: Run garbage collector on g0 stack
instead of regular g stack. We do this so that the g stack
we're currently running on is no longer changing.  Cuts
the root set down a bit (g0 stacks are not scanned, and
we don't need to scan gc's internal state).  Also an
enabler for copyable stacks.

R=golang-dev, cshapiro, khr, 0xe2.0x9a.0x9b, dvyukov, rsc, iant
CC=golang-dev
https://codereview.appspot.com/9754044
Sign in to reply to this message.

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