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

Issue 8022044: code review 8022044: cmd/ld, runtime: restrict stack root scan to locals and... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by cshapiro
Modified:
11 years, 11 months ago
Reviewers:
CC:
golang-dev, bradfitz, cshapiro1, DMorsing, ality, iant
Visibility:
Public.

Description

cmd/ld, runtime: restrict stack root scan to locals and arguments Updates issue 5134

Patch Set 1 #

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

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

Total comments: 2

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

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

Total comments: 6

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

Total comments: 5

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

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

Patch Set 9 : diff -r a933e165d2ff https://code.google.com/p/go/ #

Patch Set 10 : diff -r a933e165d2ff https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -52 lines) Patch
M src/cmd/ld/lib.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M src/cmd/ld/lib.c View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M src/pkg/runtime/mgc0.c View 1 2 3 4 5 6 2 chunks +67 lines, -23 lines 0 comments Download
M src/pkg/runtime/mprof.goc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/proc.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/runtime.h View 1 2 3 4 5 6 2 chunks +7 lines, -2 lines 0 comments Download
M src/pkg/runtime/traceback_arm.c View 1 10 chunks +19 lines, -10 lines 0 comments Download
M src/pkg/runtime/traceback_x86.c View 1 10 chunks +23 lines, -14 lines 0 comments Download

Messages

Total messages: 18
cshapiro
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
11 years, 11 months ago (2013-03-26 22:52:39 UTC) #1
bradfitz
https://codereview.appspot.com/8022044/diff/1002/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): https://codereview.appspot.com/8022044/diff/1002/src/pkg/runtime/mgc0.c#newcode1320 src/pkg/runtime/mgc0.c:1320: // scanned activation has an unknown argument size. When ...
11 years, 11 months ago (2013-03-26 23:13:17 UTC) #2
bradfitz
How much of the stack-GC story is this? Could you reference a bug number telling ...
11 years, 11 months ago (2013-03-26 23:14:42 UTC) #3
cshapiro1
https://codereview.appspot.com/8022044/diff/1002/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): https://codereview.appspot.com/8022044/diff/1002/src/pkg/runtime/mgc0.c#newcode1320 src/pkg/runtime/mgc0.c:1320: // scanned activation has an unknown argument size. When ...
11 years, 11 months ago (2013-03-26 23:24:57 UTC) #4
cshapiro1
On 2013/03/26 23:14:42, bradfitz wrote: > How much of the stack-GC story is this? Could ...
11 years, 11 months ago (2013-03-26 23:32:54 UTC) #5
cshapiro1
(BTW, PTAL)
11 years, 11 months ago (2013-03-27 00:20:30 UTC) #6
bradfitz
909 is very high-profile. I'd suggest your own stack-specific bug. On Tue, Mar 26, 2013 ...
11 years, 11 months ago (2013-03-27 00:30:01 UTC) #7
cshapiro1
I have created an issue and made note of it in the change description.
11 years, 11 months ago (2013-03-27 00:41:25 UTC) #8
bradfitz
Thanks. To be clear (and you know this, but for others): I'm not qualified to ...
11 years, 11 months ago (2013-03-27 16:27:07 UTC) #9
DMorsing
I can take a shot at reviewing this. Dmitri can probably also take a look. ...
11 years, 11 months ago (2013-03-27 19:43:51 UTC) #10
cshapiro1
On Wed, Mar 27, 2013 at 9:27 AM, Brad Fitzpatrick <bradfitz@golang.org>wrote: > I'm also unsure ...
11 years, 11 months ago (2013-03-27 20:22:09 UTC) #11
cshapiro1
https://codereview.appspot.com/8022044/diff/14001/src/cmd/ld/lib.c File src/cmd/ld/lib.c (right): https://codereview.appspot.com/8022044/diff/14001/src/cmd/ld/lib.c#newcode1864 src/cmd/ld/lib.c:1864: put(nil, ".args", 'm', 0x80000000, 0, 0, 0); A good ...
11 years, 11 months ago (2013-03-28 01:36:07 UTC) #12
cshapiro1
PTAL My latest patch set addresses Daniel's comments and adds a flag "ScanStackByFrames" that enables ...
11 years, 11 months ago (2013-03-28 01:38:08 UTC) #13
ality
https://codereview.appspot.com/8022044/diff/22001/src/cmd/ld/lib.c File src/cmd/ld/lib.c (right): https://codereview.appspot.com/8022044/diff/22001/src/cmd/ld/lib.c#newcode1866 src/cmd/ld/lib.c:1866: if(s->text->textflag & NOSPLIT) NOSPLIT assembly functions can have s->args ...
11 years, 11 months ago (2013-03-28 09:42:39 UTC) #14
DMorsing
LGTM https://codereview.appspot.com/8022044/diff/22001/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): https://codereview.appspot.com/8022044/diff/22001/src/pkg/runtime/mgc0.c#newcode1337 src/pkg/runtime/mgc0.c:1337: if(f->args > 0) This needs to be updated ...
11 years, 11 months ago (2013-03-28 13:46:15 UTC) #15
iant
On 2013/03/28 13:46:15, DMorsing wrote: > > I think the new version can go in ...
11 years, 11 months ago (2013-03-28 17:00:54 UTC) #16
cshapiro1
The most recent upload should address the remaining review comments. https://codereview.appspot.com/8022044/diff/22001/src/cmd/ld/lib.c File src/cmd/ld/lib.c (right): https://codereview.appspot.com/8022044/diff/22001/src/cmd/ld/lib.c#newcode1866 ...
11 years, 11 months ago (2013-03-28 21:13:53 UTC) #17
cshapiro
11 years, 11 months ago (2013-03-28 21:36:48 UTC) #18
*** Submitted as https://code.google.com/p/go/source/detail?r=623b1b390dd6 ***

cmd/ld, runtime: restrict stack root scan to locals and arguments

Updates issue 5134

R=golang-dev, bradfitz, cshapiro, daniel.morsing, ality, iant
CC=golang-dev
https://codereview.appspot.com/8022044
Sign in to reply to this message.

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