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

Issue 6281048: code review 6281048: ld: add .gcdata and .gcbss sections (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by atom
Modified:
11 years, 7 months ago
Reviewers:
minux1, dfc, rsc
CC:
golang-dev
Visibility:
Public.

Description

ld: add .gcdata and .gcbss sections

Patch Set 1 #

Patch Set 2 : diff -r 5e3661048f2e https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 3 : diff -r 56f5a223dcd7 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+498 lines, -346 lines) Patch
M src/cmd/5l/asm.c View 1 2 3 chunks +5 lines, -1 line 0 comments Download
M src/cmd/6l/asm.c View 1 2 3 chunks +5 lines, -1 line 0 comments Download
M src/cmd/8l/asm.c View 1 2 3 chunks +5 lines, -1 line 0 comments Download
M src/cmd/gc/subr.c View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M src/cmd/ld/data.c View 1 2 10 chunks +235 lines, -105 lines 0 comments Download
A src/cmd/ld/decodesym.c View 1 2 1 chunk +215 lines, -0 lines 0 comments Download
M src/cmd/ld/dwarf.c View 1 2 2 chunks +1 line, -235 lines 0 comments Download
M src/cmd/ld/lib.h View 1 2 3 chunks +28 lines, -2 lines 0 comments Download
M src/cmd/ld/symtab.c View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 20
atom
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 10 months ago (2012-06-04 12:39:18 UTC) #1
rsc
On Mon, Jun 11, 2012 at 8:33 AM, ⚛ <0xe2.0x9a.0x9b@gmail.com> wrote: > I would like ...
11 years, 10 months ago (2012-06-11 12:41:10 UTC) #2
atom
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 10 months ago (2012-06-18 14:04:11 UTC) #3
rsc
This looks good but it needs to stand alone before I can submit it. cmd/6l ...
11 years, 8 months ago (2012-08-05 21:39:28 UTC) #4
atom
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 7 months ago (2012-09-12 17:48:12 UTC) #5
atom
https://codereview.appspot.com/6281048/diff/4001/src/cmd/ld/data.c File src/cmd/ld/data.c (right): https://codereview.appspot.com/6281048/diff/4001/src/cmd/ld/data.c#newcode847 src/cmd/ld/data.c:847: int32 t = alignsymsize(s->size); On 2012/08/05 21:39:28, rsc wrote: ...
11 years, 7 months ago (2012-09-12 17:48:36 UTC) #6
rsc
LGTM
11 years, 7 months ago (2012-09-13 18:49:10 UTC) #7
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=910a3f16c063 *** ld: add .gcdata and .gcbss sections R=rsc CC=golang-dev http://codereview.appspot.com/6281048 Committer: ...
11 years, 7 months ago (2012-09-13 19:59:37 UTC) #8
rsc
Any guesses about the 386 build breakages? I can't reproduce the darwin one locally. I ...
11 years, 7 months ago (2012-09-14 03:08:47 UTC) #9
atom
On 2012/09/14 03:08:47, rsc wrote: > Any guesses about the 386 build breakages? > I ...
11 years, 7 months ago (2012-09-14 11:19:22 UTC) #10
dfc
I can reproduce the problem on ubuntu 12.04.1, gcc 4.6.3, ld 2.22. This is an ...
11 years, 7 months ago (2012-09-14 11:58:58 UTC) #11
rsc
Aha. Usually when I build for 386 on my 64-bit machine I use GOARCH=386 GOHOSTARCH=386. ...
11 years, 7 months ago (2012-09-14 12:20:27 UTC) #12
dfc
I believe this is how the builders build, ie, they do not set GOHOST* On ...
11 years, 7 months ago (2012-09-14 13:01:38 UTC) #13
atom
On 2012/09/14 12:20:27, rsc wrote: > Aha. > > Usually when I build for 386 ...
11 years, 7 months ago (2012-09-15 08:06:25 UTC) #14
rsc
Thanks!
11 years, 7 months ago (2012-09-17 20:44:14 UTC) #15
minux1
Hi, With this change, Linux/arm binaries are much bigger (size doubled at least). For example, ...
11 years, 7 months ago (2012-09-20 17:33:44 UTC) #16
0xe2.0x9a.0x9b_gmail.com
On Thu, Sep 20, 2012 at 7:33 PM, minux <minux.ma@gmail.com> wrote: > Hi, > > ...
11 years, 7 months ago (2012-09-20 18:20:44 UTC) #17
minux1
On Friday, September 21, 2012, ⚛ <0xe2.0x9a.0x9b@gmail.com> wrote: > > The cause of the problem ...
11 years, 7 months ago (2012-09-21 05:39:05 UTC) #18
atom
On 2012/09/21 05:39:05, minux wrote: > BTW, 8 MiB of GC data for a ~4MiB ...
11 years, 7 months ago (2012-09-21 06:19:35 UTC) #19
minux1
11 years, 7 months ago (2012-09-21 07:15:55 UTC) #20
On Fri, Sep 21, 2012 at 2:19 PM, <0xE2.0x9A.0x9B@gmail.com> wrote:

> On 2012/09/21 05:39:05, minux wrote:
>
>> BTW, 8 MiB of GC data for a ~4MiB struct seems not very memory
>> efficient. Is this expected?
>
> One reason why the GC data consumed so much space is that all integers
> (even small ones) need to be aligned to a word boundary because of
> performance reasons.
>
i see.

>
> It is possible that the encoding can be made more space efficient.

hope you have plan for this :)
because i have a project where memory is a very scarce resource so
i'd really like to use your precise GC enhancements.

thank you for your wonderful work.
Sign in to reply to this message.

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