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

Issue 5725045: code review 5725045: runtime: try extending arena size in 32-bit allocator. (Closed)

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

Description

runtime: try extending arena size in 32-bit allocator. If it didn't reach the limit, we can try extending the arena before resorting to random memory mappings and praying for the kernel to be kind. Fixes issue 3173.

Patch Set 1 #

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

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

Total comments: 1

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

Total comments: 5

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -1 line) Patch
M src/pkg/runtime/malloc.goc View 1 2 3 4 2 chunks +18 lines, -1 line 0 comments Download

Messages

Total messages: 13
remyoudompheng
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 1 month ago (2012-03-06 20:30:19 UTC) #1
remyoudompheng
This is an attempt for issue 3173. I'd like to know if anyone has an ...
12 years, 1 month ago (2012-03-06 20:31:03 UTC) #2
rsc
I think (having not looked) that the bug is that the fallback code is not ...
12 years, 1 month ago (2012-03-06 20:33:44 UTC) #3
remyoudompheng
Do you mean the call to runtime·SysAlloc? It returns something outside the possible arena (i ...
12 years, 1 month ago (2012-03-06 20:36:34 UTC) #4
rsc
On Tue, Mar 6, 2012 at 15:36, <remyoudompheng@gmail.com> wrote: > Do you mean the call ...
12 years, 1 month ago (2012-03-07 02:44:31 UTC) #5
rsc1
LGTM
12 years, 1 month ago (2012-03-07 02:45:11 UTC) #6
remyoudompheng
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 1 month ago (2012-03-07 07:13:55 UTC) #7
remyoudompheng
http://codereview.appspot.com/5725045/diff/5001/src/pkg/runtime/malloc.goc File src/pkg/runtime/malloc.goc (right): http://codereview.appspot.com/5725045/diff/5001/src/pkg/runtime/malloc.goc#newcode378 src/pkg/runtime/malloc.goc:378: new_end = (byte*)((((uintptr)new_end >> 28) + 1) << 28); ...
12 years, 1 month ago (2012-03-07 07:14:27 UTC) #8
rsc1
LGTM http://codereview.appspot.com/5725045/diff/8002/src/pkg/runtime/malloc.goc File src/pkg/runtime/malloc.goc (right): http://codereview.appspot.com/5725045/diff/8002/src/pkg/runtime/malloc.goc#newcode378 src/pkg/runtime/malloc.goc:378: uintptr needed = (uintptr)h->arena_used + n - (uintptr)h->arena_end; ...
12 years, 1 month ago (2012-03-07 07:26:40 UTC) #9
remyoudompheng
Hello rsc@golang.org, rsc@google.com (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 1 month ago (2012-03-07 07:35:32 UTC) #10
remyoudompheng
http://codereview.appspot.com/5725045/diff/8002/src/pkg/runtime/malloc.goc File src/pkg/runtime/malloc.goc (right): http://codereview.appspot.com/5725045/diff/8002/src/pkg/runtime/malloc.goc#newcode378 src/pkg/runtime/malloc.goc:378: uintptr needed = (uintptr)h->arena_used + n - (uintptr)h->arena_end; On ...
12 years, 1 month ago (2012-03-07 07:35:55 UTC) #11
rsc
LGTM
12 years, 1 month ago (2012-03-07 19:14:03 UTC) #12
rsc
12 years, 1 month ago (2012-03-07 19:21:47 UTC) #13
*** Submitted as http://code.google.com/p/go/source/detail?r=3d7bfd2a407a ***

runtime: try extending arena size in 32-bit allocator.

If it didn't reach the limit, we can try extending the arena
before resorting to random memory mappings and praying for the
kernel to be kind.

Fixes issue 3173.

R=rsc, rsc
CC=golang-dev
http://codereview.appspot.com/5725045

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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