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

Issue 9791044: code review 9791044: runtime: allocate page table lazily (Closed)

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

Description

runtime: allocate page table lazily This removes the 256MB memory allocation at startup, which conflicts with ulimit. Also will allow to eliminate an unnecessary memory dereference in GC, because the page table is usually mapped at known address. Update issue 5049. Update issue 5236.

Patch Set 1 #

Patch Set 2 : diff -r ca166884c853 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r e6c4fa4c0c25 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 4 : diff -r e6c4fa4c0c25 https://dvyukov%40google.com@code.google.com/p/go/ #

Total comments: 3

Patch Set 5 : diff -r 776aba85ece8 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 6 : diff -r e84e7204b01b https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 7 : diff -r e84e7204b01b https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 8 : diff -r c658ed1b4459 https://dvyukov%40google.com@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -11 lines) Patch
M src/pkg/runtime/malloc.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M src/pkg/runtime/malloc.goc View 1 2 3 4 5 6 7 chunks +18 lines, -9 lines 0 comments Download
M src/pkg/runtime/mgc0.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/mheap.c View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 13
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
12 years, 1 month ago (2013-05-27 06:51:19 UTC) #1
khr
The code looks good, but I don't like the naming. Things like "MapMap" make me ...
12 years, 1 month ago (2013-05-28 06:01:57 UTC) #2
dvyukov
On 2013/05/28 06:01:57, khr wrote: > The code looks good, but I don't like the ...
12 years, 1 month ago (2013-05-28 06:52:16 UTC) #3
dvyukov
PTAL renamed it to spanarray
12 years, 1 month ago (2013-05-28 07:00:54 UTC) #4
r
Names than state their type are weaker than names that explain their purpose. We call ...
12 years, 1 month ago (2013-05-28 12:54:33 UTC) #5
dvyukov
On 2013/05/28 12:54:33, r wrote: > Names than state their type are weaker than names ...
12 years, 1 month ago (2013-05-28 15:00:53 UTC) #6
r
'tab' is an alias for 'array'. how about 'spans'?
12 years, 1 month ago (2013-05-28 15:28:01 UTC) #7
khr1
Or "spanlookup", as that's what it is for. "spans" was my original suggestion... On Tue, ...
12 years, 1 month ago (2013-05-28 15:51:03 UTC) #8
dvyukov
OK, let it be "spans". PTAL.
12 years, 1 month ago (2013-05-28 16:41:22 UTC) #9
khr
LGTM
12 years, 1 month ago (2013-05-28 16:44:59 UTC) #10
rsc
On Mon, May 27, 2013 at 2:51 AM, <dvyukov@google.com> wrote: > Also will allow to ...
12 years, 1 month ago (2013-05-28 16:47:36 UTC) #11
dvyukov
On Tue, May 28, 2013 at 8:47 PM, Russ Cox <rsc@golang.org> wrote: > On Mon, ...
12 years, 1 month ago (2013-05-28 17:01:46 UTC) #12
dvyukov
12 years, 1 month ago (2013-05-28 18:04:40 UTC) #13
*** Submitted as https://code.google.com/p/go/source/detail?r=2e317dfcaf96 ***

runtime: allocate page table lazily
This removes the 256MB memory allocation at startup,
which conflicts with ulimit.
Also will allow to eliminate an unnecessary memory dereference in GC,
because the page table is usually mapped at known address.
Update issue 5049.
Update issue 5236.

R=golang-dev, khr, r, khr, rsc
CC=golang-dev
https://codereview.appspot.com/9791044
Sign in to reply to this message.

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