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

Issue 244022: Allocate all executable code within a 2 GB code range. (Closed)

Created:
11 years, 2 months ago by William Hesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Allocate all executable code within a 2 GB code range. Committed: http://code.google.com/p/v8/source/detail?r=3004

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 10

Patch Set 3 : '' #

Total comments: 5

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -5 lines) Patch
M src/heap.h View 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M src/heap.cc View 1 2 3 4 5 6 7 4 chunks +13 lines, -0 lines 0 comments Download
M src/spaces.h View 1 2 3 4 5 6 7 3 chunks +72 lines, -2 lines 0 comments Download
M src/spaces.cc View 1 2 3 4 5 6 7 3 chunks +133 lines, -3 lines 0 comments Download
M test/cctest/test-alloc.cc View 3 4 5 6 7 9 1 chunk +62 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
William Hesse
Will add a C test that exercises this, and test on all platforms with both ...
11 years, 2 months ago (2009-09-29 14:52:07 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/244022/diff/1001/2004 File src/spaces.cc (right): http://codereview.chromium.org/244022/diff/1001/2004#newcode170 Line 170: FreeBlock entire_range = {static_cast<Address>(code_range_->address()), I would prefer ...
11 years, 2 months ago (2009-09-30 10:01:43 UTC) #2
Erik Corry
http://codereview.chromium.org/244022/diff/5002/5006 File src/spaces.cc (right): http://codereview.chromium.org/244022/diff/5002/5006#newcode188 Line 188: for (current_allocation_block_index_++; Always incrementing this means we sort ...
11 years, 2 months ago (2009-09-30 10:56:42 UTC) #3
Erik Corry
Ah, I see now the answer to my question was "no". LGTM
11 years, 2 months ago (2009-09-30 11:03:21 UTC) #4
Kevin Millikin (Chromium)
Drive by. http://codereview.chromium.org/244022/diff/5002/5004 File src/heap.cc (right): http://codereview.chromium.org/244022/diff/5002/5004#newcode1929 Line 1929: ASSERT(!CodeRange::exists() || CodeRange::contains(code)); Please do not ...
11 years, 2 months ago (2009-09-30 11:04:18 UTC) #5
William Hesse
11 years, 2 months ago (2009-10-01 07:57:27 UTC) #6
http://codereview.chromium.org/244022/diff/1001/2004
File src/spaces.cc (right):

http://codereview.chromium.org/244022/diff/1001/2004#newcode170
Line 170: FreeBlock entire_range =
{static_cast<Address>(code_range_->address()),
On 2009/09/30 10:01:43, Mads Ager wrote:
> I would prefer if FreeBlock was a class with a constructor.

Done.

http://codereview.chromium.org/244022/diff/1001/2004#newcode232
Line 232: // Finally, crash the system.
On 2009/09/30 10:01:43, Mads Ager wrote:
> I would remove this line.  The call does not always end up crashing the
system.
> :)

Done.

http://codereview.chromium.org/244022/diff/1001/2004#newcode257
Line 257: FreeBlock free_item = {static_cast<Address>(address), length};
On 2009/09/30 10:01:43, Mads Ager wrote:
> I would prefer that FreeBlock has a constructor.

Done.

http://codereview.chromium.org/244022/diff/1001/2003
File src/spaces.h (right):

http://codereview.chromium.org/244022/diff/1001/2003#newcode323
Line 323: //  manages a range of virtual memory.
On 2009/09/30 10:01:43, Mads Ager wrote:
> Remove extra space at start of line.

Done.

http://codereview.chromium.org/244022/diff/1001/2003#newcode336
Line 336: static inline  bool contains(void* address);
On 2009/09/30 10:01:43, Mads Ager wrote:
> Remove extra space before bool.

Done.

Powered by Google App Engine
This is Rietveld 408576698