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

Issue 136001: Changed allocation to allow large objects to be allocated in new space.... (Closed)

Created:
11 years, 6 months ago by bak
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Changed allocation to allow large objects to be allocated in new space. This avoids back-to-back mark-sweep collections. Committed: http://code.google.com/p/v8/source/detail?r=2219

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -73 lines) Patch
M src/heap.h View 2 chunks +4 lines, -3 lines 0 comments Download
M src/heap.cc View 14 chunks +83 lines, -48 lines 1 comment Download
M src/heap-inl.h View 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/builtins-ia32.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/mark-compact.cc View 2 chunks +10 lines, -6 lines 3 comments Download
M src/serialize.cc View 1 chunk +11 lines, -7 lines 0 comments Download
M src/spaces.h View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/test-heap.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/test-mark-compact.cc View 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
bak
11 years, 6 months ago (2009-06-18 13:39:08 UTC) #1
Mads Ager (chromium)
11 years, 6 months ago (2009-06-18 14:01:20 UTC) #2
LGTM

http://codereview.chromium.org/136001/diff/1/4
File src/heap.cc (right):

http://codereview.chromium.org/136001/diff/1/4#newcode724
Line 724: 
Accidental edit?

http://codereview.chromium.org/136001/diff/1/9
File src/mark-compact.cc (right):

http://codereview.chromium.org/136001/diff/1/9#newcode950
Line 950: // strings are promoted to the code space, all others to the old
space.
Not your code, but this comment seems wrong.  Heap numbers and sequential
strings are promoted to old data space, not code space.

http://codereview.chromium.org/136001/diff/1/9#newcode952
Line 952: Object* forwarded ;
Remove space before ';'.

http://codereview.chromium.org/136001/diff/1/9#newcode1681
Line 1681: reinterpret_cast<OldSpace*>(space)->MCAdjustRelocationEnd(new_addr,
obj_size);
space is already has type OldSpace*, so there should be no need for the cast?

Powered by Google App Engine
This is Rietveld 408576698