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

Issue 11085043: code review 11085043: cmd/ld, runtime: new in-memory symbol table format (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by rsc
Modified:
10 years, 9 months ago
Reviewers:
r, brainman, iant
CC:
golang-dev, dave_cheney.net, cshapiro1, iant, r, nigeltao
Visibility:
Public.

Description

cmd/ld, runtime: new in-memory symbol table format Design at http://golang.org/s/go12symtab. This enables some cleanup of the garbage collector metadata that will be done in future CLs. This CL does not move the old symtab and pclntab back into an unmapped section of the file. That's a bit tricky and will be done separately. Fixes issue 4020.

Patch Set 1 #

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

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

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

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

Total comments: 1

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

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

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

Total comments: 20

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

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+969 lines, -668 lines) Patch
M src/cmd/5l/5.out.h View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M src/cmd/5l/l.h View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/5l/obj.c View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M src/cmd/6l/6.out.h View 1 2 3 1 chunk +7 lines, -4 lines 0 comments Download
M src/cmd/6l/l.h View 1 3 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/6l/obj.c View 1 3 chunks +3 lines, -0 lines 0 comments Download
M src/cmd/6l/optab.c View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -6 lines 0 comments Download
M src/cmd/8l/8.out.h View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M src/cmd/8l/l.h View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/8l/obj.c View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M src/cmd/8l/optab.c View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -3 lines 0 comments Download
M src/cmd/gc/fmt.c View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/cmd/ld/data.c View 1 7 chunks +14 lines, -14 lines 0 comments Download
M src/cmd/ld/go.c View 1 2 3 4 5 6 5 chunks +14 lines, -3 lines 0 comments Download
M src/cmd/ld/lib.h View 1 2 3 4 5 7 chunks +20 lines, -6 lines 0 comments Download
M src/cmd/ld/lib.c View 1 2 3 4 5 6 7 8 9 3 chunks +614 lines, -0 lines 0 comments Download
M src/cmd/ld/symtab.c View 1 3 chunks +13 lines, -1 line 0 comments Download
M src/pkg/runtime/asm_386.s View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/runtime/asm_amd64.s View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/runtime/asm_arm.s View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/runtime/extern.go View 1 2 3 4 3 chunks +10 lines, -14 lines 0 comments Download
M src/pkg/runtime/mgc0.c View 1 2 chunks +5 lines, -4 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 2 3 4 5 6 7 8 9 2 chunks +18 lines, -12 lines 0 comments Download
M src/pkg/runtime/runtime.c View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M src/pkg/runtime/symtab.c View 1 2 3 4 5 6 7 8 4 chunks +160 lines, -533 lines 0 comments Download
M src/pkg/runtime/traceback_arm.c View 1 2 3 4 5 6 7 8 9 chunks +18 lines, -23 lines 0 comments Download
M src/pkg/runtime/traceback_x86.c View 1 2 3 4 5 6 7 9 chunks +31 lines, -23 lines 0 comments Download

Messages

Total messages: 18
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
10 years, 9 months ago (2013-07-11 03:18:40 UTC) #1
rsc
As usual there is something not 100% right on arm. 386 and amd64 are fine.
10 years, 9 months ago (2013-07-11 03:19:12 UTC) #2
nigeltao
https://codereview.appspot.com/11085043/diff/11001/src/cmd/ld/lib.c File src/cmd/ld/lib.c (right): https://codereview.appspot.com/11085043/diff/11001/src/cmd/ld/lib.c#newcode1370 src/cmd/ld/lib.c:1370: if(0 && debug['O']) Revert. Similarly below.
10 years, 9 months ago (2013-07-11 05:12:50 UTC) #3
rsc
PTAL Now arm works a lot better, though still not 100%. Funny story: 5l inserts ...
10 years, 9 months ago (2013-07-12 03:53:28 UTC) #4
rsc
PTAL arm is at 100% now. The final problem was the traceback didn't know to ...
10 years, 9 months ago (2013-07-12 04:27:49 UTC) #5
dave_cheney.net
On 2013/07/12 04:27:49, rsc wrote: > PTAL > > arm is at 100% now. The ...
10 years, 9 months ago (2013-07-13 14:36:09 UTC) #6
dave_cheney.net
On 2013/07/13 14:36:09, dfc wrote: > On 2013/07/12 04:27:49, rsc wrote: > > PTAL > ...
10 years, 9 months ago (2013-07-15 06:03:05 UTC) #7
rsc
Ping.
10 years, 9 months ago (2013-07-15 21:04:49 UTC) #8
dave_cheney.net
Two compile errors on arm. Sorry I cannot review further. https://codereview.appspot.com/11085043/diff/23001/src/pkg/runtime/traceback_arm.c File src/pkg/runtime/traceback_arm.c (right): https://codereview.appspot.com/11085043/diff/23001/src/pkg/runtime/traceback_arm.c#newcode99 ...
10 years, 9 months ago (2013-07-15 23:44:36 UTC) #9
cshapiro1
https://codereview.appspot.com/11085043/diff/23001/src/cmd/5l/5.out.h File src/cmd/5l/5.out.h (right): https://codereview.appspot.com/11085043/diff/23001/src/cmd/5l/5.out.h#newcode204 src/cmd/5l/5.out.h:204: // TODO: Remove these. Why isn't the ATYPE value ...
10 years, 9 months ago (2013-07-15 23:49:22 UTC) #10
iant
LGTM https://codereview.appspot.com/11085043/diff/23001/src/cmd/ld/go.c File src/cmd/ld/go.c (right): https://codereview.appspot.com/11085043/diff/23001/src/cmd/ld/go.c#newcode804 src/cmd/ld/go.c:804: // NOTE: Keep in sync with ../gc/go.c:/^Zconv. s/go.c/fmt.c/ ...
10 years, 9 months ago (2013-07-15 23:59:07 UTC) #11
r
code seems fine but commentary is required https://codereview.appspot.com/11085043/diff/23001/src/cmd/ld/lib.c File src/cmd/ld/lib.c (right): https://codereview.appspot.com/11085043/diff/23001/src/cmd/ld/lib.c#newcode1459 src/cmd/ld/lib.c:1459: pctofileline(Sym *sym, ...
10 years, 9 months ago (2013-07-16 00:23:42 UTC) #12
rsc
Hello golang-dev@googlegroups.com, dave@cheney.net, cshapiro@google.com, iant@golang.org, r@golang.org (cc: golang-dev@googlegroups.com, nigeltao@golang.org), Please take another look.
10 years, 9 months ago (2013-07-16 00:58:13 UTC) #13
rsc
PTAL https://codereview.appspot.com/11085043/diff/23001/src/cmd/ld/lib.c File src/cmd/ld/lib.c (right): https://codereview.appspot.com/11085043/diff/23001/src/cmd/ld/lib.c#newcode1459 src/cmd/ld/lib.c:1459: pctofileline(Sym *sym, int32 oldval, Prog *p, int32 phase, ...
10 years, 9 months ago (2013-07-16 00:58:34 UTC) #14
rsc
https://codereview.appspot.com/11085043/diff/23001/src/cmd/5l/5.out.h File src/cmd/5l/5.out.h (right): https://codereview.appspot.com/11085043/diff/23001/src/cmd/5l/5.out.h#newcode204 src/cmd/5l/5.out.h:204: // TODO: Remove these. On 2013/07/15 23:49:22, cshapiro1 wrote: ...
10 years, 9 months ago (2013-07-16 01:00:56 UTC) #15
r
LGTM https://codereview.appspot.com/11085043/diff/54001/src/cmd/ld/lib.c File src/cmd/ld/lib.c (right): https://codereview.appspot.com/11085043/diff/54001/src/cmd/ld/lib.c#newcode1546 src/cmd/ld/lib.c:1546: // transmitted in zig-zag form, where the sign ...
10 years, 9 months ago (2013-07-16 04:24:00 UTC) #16
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=8b12d6f12155 *** cmd/ld, runtime: new in-memory symbol table format Design at http://golang.org/s/go12symtab. ...
10 years, 9 months ago (2013-07-16 13:41:50 UTC) #17
brainman
10 years, 9 months ago (2013-07-17 01:40:02 UTC) #18
Message was sent while issue was closed.
FYI. This broke windows build

# ..\misc\cgo\test
# testmain
history stack phase error: bad offset in pop
FAIL	_/c_/gobuilder/windows-amd64-8b12d6f12155/go/misc/cgo/test [build failed]
Build complete, duration 8m55.837s. Result: error: exit status 1

Alex
Sign in to reply to this message.

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