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

Issue 285693006: Fix Heap::IsHeapIterable. (Closed)

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

Description

Fix Heap::IsHeapIterable. We only consider heap iterable if the new space is empty (in addition to the exisiting old space check). The change also moves the iterability forcing + allocation prevention gadgets to HeapIterator so that it is impossible to miss them when iterating the heap. R=hpayer@chromium.org BUG=373283 LOG=N Committed: https://code.google.com/p/v8/source/detail?r=21387

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rename EnsureHeapIsIterable => MakeHeapIterable #

Total comments: 2

Patch Set 3 : Fold no-allocation and iterable checks/calls into HeapIterator #

Patch Set 4 : Fix object size precision test #

Total comments: 1

Patch Set 5 : Cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -74 lines) Patch
M src/debug.cc View 1 2 5 chunks +2 lines, -7 lines 0 comments Download
M src/heap.h View 1 2 3 chunks +10 lines, -1 line 0 comments Download
M src/heap.cc View 1 2 3 chunks +10 lines, -5 lines 0 comments Download
M src/heap-profiler.cc View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M src/heap-snapshot-generator.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M src/liveedit.cc View 1 2 3 4 5 chunks +3 lines, -9 lines 0 comments Download
M src/runtime.cc View 1 2 7 chunks +36 lines, -40 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/test-heap.cc View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M test/cctest/test-object-observe.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
A test/mjsunit/regress/regress-373283.js View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Jarin
6 years, 7 months ago (2014-05-14 13:35:20 UTC) #1
Hannes Payer (out of office)
https://codereview.chromium.org/285693006/diff/1/src/heap.cc File src/heap.cc (left): https://codereview.chromium.org/285693006/diff/1/src/heap.cc#oldcode4316 src/heap.cc:4316: void Heap::EnsureHeapIsIterable() { Let's rename it to MakeIterable. https://codereview.chromium.org/285693006/diff/1/src/runtime.cc ...
6 years, 7 months ago (2014-05-18 18:25:43 UTC) #2
Jarin
https://codereview.chromium.org/285693006/diff/1/src/heap.cc File src/heap.cc (left): https://codereview.chromium.org/285693006/diff/1/src/heap.cc#oldcode4316 src/heap.cc:4316: void Heap::EnsureHeapIsIterable() { On 2014/05/18 18:25:43, Hannes Payer wrote: ...
6 years, 7 months ago (2014-05-19 06:06:42 UTC) #3
Hannes Payer (out of office)
LGTM https://codereview.chromium.org/285693006/diff/20001/src/heap.cc File src/heap.cc (left): https://codereview.chromium.org/285693006/diff/20001/src/heap.cc#oldcode4312 src/heap.cc:4312: !old_data_space()->was_swept_conservatively()); Now I am not sure if we ...
6 years, 7 months ago (2014-05-19 08:31:12 UTC) #4
Jarin
On 2014/05/19 08:31:12, Hannes Payer wrote: > LGTM > > https://codereview.chromium.org/285693006/diff/20001/src/heap.cc > File src/heap.cc (left): ...
6 years, 7 months ago (2014-05-20 11:56:57 UTC) #5
Hannes Payer (out of office)
wohooo, double LGTM https://codereview.chromium.org/285693006/diff/60001/src/liveedit.cc File src/liveedit.cc (right): https://codereview.chromium.org/285693006/diff/60001/src/liveedit.cc#newcode946 src/liveedit.cc:946: DisallowHeapAllocation no_allocation; should be coverd by ...
6 years, 7 months ago (2014-05-20 13:06:09 UTC) #6
Jarin
6 years, 7 months ago (2014-05-20 13:19:50 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 manually as r21387 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698