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

Issue 4148045: code review 4148045: runtime: new allocation strategy for amd64 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 2 months ago by rsc
Modified:
14 years, 2 months ago
Reviewers:
CC:
r, niemeyer, golang-dev
Visibility:
Public.

Description

runtime: new allocation strategy for amd64 Do not reserve virtual address space. Instead, assume it will be there when we need it, and crash loudly if that assumption is violated. Reserving the address space gets charged to ulimit -v, which exceeds commonly set limits. http://groups.google.com/group/golang-dev/msg/7c477af5f5a8dd2c

Patch Set 1 #

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

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

Patch Set 4 : diff -r d999ada833d6 https://go.googlecode.com/hg #

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -3 lines) Patch
M src/pkg/runtime/freebsd/mem.c View 1 2 chunks +17 lines, -0 lines 0 comments Download
M src/pkg/runtime/linux/mem.c View 1 2 chunks +17 lines, -0 lines 0 comments Download
M test/run View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 6
rsc
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
14 years, 2 months ago (2011-02-09 16:19:26 UTC) #1
niemeyer
One detail I wondered: http://codereview.appspot.com/4148045/diff/7001/src/pkg/runtime/linux/mem.c File src/pkg/runtime/linux/mem.c (right): http://codereview.appspot.com/4148045/diff/7001/src/pkg/runtime/linux/mem.c#newcode60 src/pkg/runtime/linux/mem.c:60: p = runtime·mmap(v, n, PROT_READ|PROT_WRITE|PROT_EXEC, ...
14 years, 2 months ago (2011-02-09 17:39:57 UTC) #2
rsc
> http://codereview.appspot.com/4148045/diff/7001/src/pkg/runtime/linux/mem.c#newcode60 > src/pkg/runtime/linux/mem.c:60: p = runtime·mmap(v, n, > PROT_READ|PROT_WRITE|PROT_EXEC, MAP_ANON|MAP_PRIVATE, -1, 0); > Isn't ...
14 years, 2 months ago (2011-02-09 18:02:23 UTC) #3
niemeyer
> If you omit MAP_FIXED it means "put the mapping there > if you can, ...
14 years, 2 months ago (2011-02-09 18:25:07 UTC) #4
r
LGTM but please be more forthcoming in CL descriptions of important changes. what is the ...
14 years, 2 months ago (2011-02-09 18:43:59 UTC) #5
rsc
14 years, 2 months ago (2011-02-09 19:38:36 UTC) #6
*** Submitted as 770fc1179efc ***

runtime: new allocation strategy for amd64

Do not reserve virtual address space.
Instead, assume it will be there when we need it,
and crash loudly if that assumption is violated.
Reserving the address space gets charged to
ulimit -v, which exceeds commonly set limits.

http://groups.google.com/group/golang-dev/msg/7c477af5f5a8dd2c

R=r, niemeyer
CC=golang-dev
http://codereview.appspot.com/4148045
Sign in to reply to this message.

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