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

Issue 8700: As discussed on the phone, I'd like your thoughts on the... (Closed)

Created:
12 years, 1 month ago by Kasper Lund
Modified:
8 years, 7 months ago
Visibility:
Public.

Description

Make sure that allocations through CALL_HEAP_FUNCTION and runtime calls from JavaScript will always succeed eventually if we have enough memory. Committed: http://code.google.com/p/v8/source/detail?r=646

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+326 lines, -111 lines) Patch
M src/assembler.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/assembler.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/codegen.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/codegen-arm.cc View 1 5 chunks +25 lines, -4 lines 0 comments Download
M src/codegen-ia32.cc View 1 4 chunks +17 lines, -3 lines 0 comments Download
M src/heap.h View 1 5 chunks +29 lines, -1 line 1 comment Download
M src/heap.cc View 1 13 chunks +52 lines, -23 lines 1 comment Download
M src/heap-inl.h View 1 4 chunks +69 lines, -71 lines 4 comments Download
M src/runtime.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/serialize.cc View 1 2 chunks +11 lines, -4 lines 0 comments Download
M src/spaces.cc View 1 3 chunks +3 lines, -3 lines 1 comment Download
M src/v8-counters.h View 1 chunk +2 lines, -0 lines 0 comments Download
M test/cctest/SConscript View 1 1 chunk +1 line, -1 line 0 comments Download
test/cctest/test-alloc.cc View 1 1 chunk +105 lines, -0 lines 1 comment Download
M tools/visual_studio/v8_cctest.vcproj View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
iposva
I think this change is headed in the right direction overall. The devil will be ...
12 years, 1 month ago (2008-10-30 05:29:01 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/8700/diff/204/208 File src/heap-inl.h (right): http://codereview.chromium.org/8700/diff/204/208#newcode60 Line 60: if (!always_allocate() || !result->IsFailure()) return result; Normally, ...
12 years, 1 month ago (2008-10-30 08:48:14 UTC) #2
Erik Corry
LGTM. Apart from these there are 3 places we need to check, perhaps in a ...
12 years, 1 month ago (2008-10-30 09:08:43 UTC) #3
bak
LGTM, Lars http://codereview.chromium.org/8700/diff/204/211 File src/spaces.cc (right): http://codereview.chromium.org/8700/diff/204/211#newcode1536 Line 1536: if (!Heap::always_allocate() && Heap::OldGenerationAllocationLimitReached()) { This ...
12 years, 1 month ago (2008-10-30 11:17:02 UTC) #4
Kevin Millikin (Chromium)
8 years, 7 months ago (2012-05-07 09:29:08 UTC) #5
http://codereview.chromium.org/8700/diff/204/test/cctest/test-alloc.cc
File test/cctest/test-alloc.cc (right):

http://codereview.chromium.org/8700/diff/204/test/cctest/test-alloc.cc#newcode56
test/cctest/test-alloc.cc:56: + 
CHECK(!Heap::AllocateHeapNumber(0.42)->IsFailure());
If this is meant to test the retry space for heap numbers, then we should assert
that heap number size is >= 0-element byte array (or >= new space available) to
make sure we're not hitting a hole at the top of the new space.

Powered by Google App Engine
This is Rietveld 408576698