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

Issue 209473006: Ensure that we don't mark weak heap references in the constant pool array. (Closed)

Created:
6 years, 9 months ago by rmcilroy
Modified:
6 years, 8 months ago
Reviewers:
ulan
CC:
v8-dev, Alexandre Rames
Visibility:
Public.

Description

Ensure that we don't mark weak heap references in the constant pool array. Some heap pointer's embedded in optimized code are considered weak. Ensure that we don't mark them during GC of the ConstantPoolArray. Also, embed length metadata in a bitfield, reducing the ConstantPoolArray header size from five words to two. R=ulan@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=20573

Patch Set 1 #

Patch Set 2 : Revert globals.h change #

Patch Set 3 : Address Ulan's comments #

Total comments: 2

Patch Set 4 : Add length check to AllocateConstantPoolArray #

Patch Set 5 : Fix typo #

Total comments: 4

Patch Set 6 : replace with CHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -43 lines) Patch
M src/heap.cc View 1 2 3 4 5 3 chunks +13 lines, -7 lines 0 comments Download
M src/lithium-codegen.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 chunks +24 lines, -15 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 chunks +47 lines, -19 lines 0 comments Download
M src/objects-visiting-inl.h View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
rmcilroy
Ulan: Unfortunately your suggestion of simply not marking heap entries in the Constant Pool didn't ...
6 years, 9 months ago (2014-03-24 12:52:35 UTC) #1
ulan
On 2014/03/24 12:52:35, rmcilroy wrote: > Ulan: Unfortunately your suggestion of simply not marking heap ...
6 years, 9 months ago (2014-03-24 13:17:11 UTC) #2
rmcilroy
On 2014/03/24 13:17:11, ulan (offline till April 1) wrote: > On 2014/03/24 12:52:35, rmcilroy wrote: ...
6 years, 9 months ago (2014-03-27 12:19:28 UTC) #3
ulan
https://codereview.chromium.org/209473006/diff/40001/src/objects.h File src/objects.h (right): https://codereview.chromium.org/209473006/diff/40001/src/objects.h#newcode3269 src/objects.h:3269: class NumberOfInt64EntriesField: public BitField<int, 0, 10> {}; How do ...
6 years, 8 months ago (2014-04-01 19:09:14 UTC) #4
rmcilroy
Sorry for the delay - I've been busy with Chrome things. PTAL. https://codereview.chromium.org/209473006/diff/40001/src/objects.h File src/objects.h ...
6 years, 8 months ago (2014-04-07 14:03:55 UTC) #5
ulan
LGTM with one comment: https://codereview.chromium.org/209473006/diff/80001/src/heap.cc File src/heap.cc (right): https://codereview.chromium.org/209473006/diff/80001/src/heap.cc#newcode5310 src/heap.cc:5310: v8::internal::Heap::FatalProcessOutOfMemory("invalid array length", true); Let's ...
6 years, 8 months ago (2014-04-07 14:14:40 UTC) #6
rmcilroy
https://codereview.chromium.org/209473006/diff/80001/src/heap.cc File src/heap.cc (right): https://codereview.chromium.org/209473006/diff/80001/src/heap.cc#newcode5310 src/heap.cc:5310: v8::internal::Heap::FatalProcessOutOfMemory("invalid array length", true); On 2014/04/07 14:14:40, ulan wrote: ...
6 years, 8 months ago (2014-04-07 14:23:12 UTC) #7
ulan
https://codereview.chromium.org/209473006/diff/80001/src/heap.cc File src/heap.cc (right): https://codereview.chromium.org/209473006/diff/80001/src/heap.cc#newcode5310 src/heap.cc:5310: v8::internal::Heap::FatalProcessOutOfMemory("invalid array length", true); On 2014/04/07 14:23:12, rmcilroy wrote: ...
6 years, 8 months ago (2014-04-07 14:52:01 UTC) #8
rmcilroy
https://codereview.chromium.org/209473006/diff/80001/src/heap.cc File src/heap.cc (right): https://codereview.chromium.org/209473006/diff/80001/src/heap.cc#newcode5310 src/heap.cc:5310: v8::internal::Heap::FatalProcessOutOfMemory("invalid array length", true); On 2014/04/07 14:52:01, ulan wrote: ...
6 years, 8 months ago (2014-04-07 20:19:17 UTC) #9
ulan
LGTM
6 years, 8 months ago (2014-04-08 08:20:20 UTC) #10
rmcilroy
6 years, 8 months ago (2014-04-08 10:01:07 UTC) #11
Message was sent while issue was closed.
Committed patchset #6 manually as r20573 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698