Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Issue 12984: Partial fix for issue 173:... (Closed)

Created:
12 years ago by iposva
Modified:
9 years, 4 months ago
Reviewers:
Kasper Lund
CC:
v8-dev
Visibility:
Public.

Description

Partial fix for issue 173: - Do not keep growing the zone segment size exponentially. By putting an upper limit on the segment size we limit the requirements for contiguous memory allocation. Committed: http://code.google.com/p/v8/source/detail?r=926

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -2 lines) Patch
M src/zone.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/zone.cc View 1 chunk +17 lines, -2 lines 4 comments Download

Messages

Total messages: 3 (0 generated)
iposva
12 years ago (2008-12-05 08:27:38 UTC) #1
Kasper Lund
LGTM. http://codereview.chromium.org/12984/diff/1/2 File src/zone.cc (right): http://codereview.chromium.org/12984/diff/1/2#newcode166 Line 166: int segment_overhead = sizeof(Segment) + kAlignment; This ...
12 years ago (2008-12-05 08:36:48 UTC) #2
iposva
12 years ago (2008-12-05 17:25:13 UTC) #3
http://codereview.chromium.org/12984/diff/1/2
File src/zone.cc (right):

http://codereview.chromium.org/12984/diff/1/2#newcode166
Line 166: int segment_overhead = sizeof(Segment) + kAlignment;
On 2008/12/05 08:36:49, Kasper Lund wrote:
> This is a constant, right? Maybe make it 'static const int kSegmentOverhead'? 

Done.

http://codereview.chromium.org/12984/diff/1/2#newcode177
Line 177: new_size = RoundUp(size + segment_overhead, kMinimumSegmentSize);
The idea was to round up to a size that is likely going to be a page size, but
since segments are allocated using malloc, this is mostly useless.

I removed the RoundUp() call.

On 2008/12/05 08:36:49, Kasper Lund wrote:
> Why do you round the result up? If it's a feature to (maybe) leave some room
in
> the new segment, you may want to document that in a comment.

Powered by Google App Engine
This is Rietveld 408576698