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

Issue 9666047: code review 9666047: cmd/ld, runtime: emit pointer maps for nosplits identif... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by cshapiro1
Modified:
12 years, 1 month ago
Reviewers:
r, khr1
CC:
golang-dev, khr, khr1
Visibility:
Public.

Description

cmd/ld, runtime: emit pointer maps for nosplits identified by the linker A nosplits was assumed to have no argument information and no pointer map. However, nosplits created by the linker often have both. This change uses the pointer map size as an alternate source of argument size when processing a nosplit. In addition, the symbol table construction pointer map size and argument size consistency check is strengthened. If a nptrs is greater than 0 it must be equal to the number of argument words.

Patch Set 1 #

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

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

Total comments: 4

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

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

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -17 lines) Patch
M src/cmd/gc/pgen.c View 1 2 3 4 1 chunk +8 lines, -14 lines 0 comments Download
M src/cmd/ld/lib.c View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
M src/pkg/runtime/symtab.c View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10
cshapiro1
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
12 years, 1 month ago (2013-05-29 02:49:50 UTC) #1
khr
https://codereview.appspot.com/9666047/diff/5001/src/cmd/ld/lib.c File src/cmd/ld/lib.c (right): https://codereview.appspot.com/9666047/diff/5001/src/cmd/ld/lib.c#newcode1917 src/cmd/ld/lib.c:1917: if(s->text->textflag & NOSPLIT) { I don't understand why NOSPLIT ...
12 years, 1 month ago (2013-05-29 19:07:03 UTC) #2
cshapiro1
https://codereview.appspot.com/9666047/diff/5001/src/cmd/ld/lib.c File src/cmd/ld/lib.c (right): https://codereview.appspot.com/9666047/diff/5001/src/cmd/ld/lib.c#newcode1917 src/cmd/ld/lib.c:1917: if(s->text->textflag & NOSPLIT) { If we are talking about ...
12 years, 1 month ago (2013-05-29 20:06:40 UTC) #3
khr1
On Wed, May 29, 2013 at 1:06 PM, <cshapiro@google.com> wrote: > > https://codereview.appspot.**com/9666047/diff/5001/src/cmd/**ld/lib.c<https://codereview.appspot.com/9666047/diff/5001/src/cmd/ld/lib.c> > File ...
12 years, 1 month ago (2013-05-29 21:21:21 UTC) #4
cshapiro1
On Wed, May 29, 2013 at 2:21 PM, Keith Randall <khr@google.com> wrote: > What I'm ...
12 years, 1 month ago (2013-05-29 21:37:58 UTC) #5
khr1
Maybe the condition should be (s->text->textflag & NOSPLIT) && s->args == 0. In any case, ...
12 years, 1 month ago (2013-05-29 21:46:27 UTC) #6
cshapiro1
On Wed, May 29, 2013 at 2:46 PM, Keith Randall <khr@google.com> wrote: > Maybe the ...
12 years, 1 month ago (2013-05-29 23:42:55 UTC) #7
khr1
Sounds good. On Wed, May 29, 2013 at 4:42 PM, Carl Shapiro <cshapiro@google.com> wrote: > ...
12 years, 1 month ago (2013-05-29 23:44:30 UTC) #8
cshapiro1
*** Submitted as https://code.google.com/p/go/source/detail?r=44ea8c2938f1 *** cmd/ld, runtime: emit pointer maps for nosplits identified by the ...
12 years, 1 month ago (2013-05-30 00:17:00 UTC) #9
r
12 years, 1 month ago (2013-05-30 01:36:57 UTC) #10
This piece of deep runtime was submitted without a core team member's
LGTM. It's always good to have external approval (thanks kr) but
especially for critical pieces please get a core LGTM. Keith Randall's
'sounds good' wasn't enough for my petty tyrannical tendencies.

-rob


On Thu, May 30, 2013 at 12:17 AM,  <cshapiro@google.com> wrote:
> *** Submitted as
> https://code.google.com/p/go/source/detail?r=44ea8c2938f1 ***
>
> cmd/ld, runtime: emit pointer maps for nosplits identified by the linker
>
> A nosplits was assumed to have no argument information and no
> pointer map.  However, nosplits created by the linker often
> have both.  This change uses the pointer map size as an
> alternate source of argument size when processing a nosplit.
>
> In addition, the symbol table construction pointer map size
> and argument size consistency check is strengthened.  If a
> nptrs is greater than 0 it must be equal to the number of
> argument words.
>
> R=golang-dev, khr, khr
> CC=golang-dev
> https://codereview.appspot.com/9666047
>
>
> https://codereview.appspot.com/9666047/
>
> --
>
> ---You received this message because you are subscribed to the Google Groups
> "golang-dev" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-dev+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Sign in to reply to this message.

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