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

Issue 396803009: Tests that the GC doesn't mistake non-pointer constant pool entries as poitners. (Closed)

Created:
6 years, 5 months ago by rmcilroy
Modified:
6 years, 4 months ago
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Tests that the GC doesn't mistake non-pointer constant pool entries as pointers. Adds a test for ConstantPoolArray to ensure that the GC doesn't mistake non-pointer entries as pointers and try to modify them during scavenge operations. Also adds asserts to ConstantPoolArray::set(int, *Object) to ensure we don't add new-space pointers in constant pool array. R=hpayer@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=22608 Committed: https://code.google.com/p/v8/source/detail?r=22634

Patch Set 1 #

Patch Set 2 : Avoid putting pointer to newspace object in constant pool and add asserts. #

Patch Set 3 : Fix "loses precision" warning. #

Patch Set 4 : Don't add new-space pointers to constant pool in tests, and add ConstantPoolCompacting test #

Total comments: 4

Patch Set 5 : Add isOldSpace checks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -21 lines) Patch
M src/objects-inl.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M test/cctest/test-constantpool.cc View 1 2 3 4 6 chunks +88 lines, -21 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
rmcilroy
Please take a look, thanks.
6 years, 5 months ago (2014-07-17 12:52:49 UTC) #1
Hannes Payer (out of office)
thx! lgtm
6 years, 5 months ago (2014-07-17 15:28:09 UTC) #2
rmcilroy
Fixed test and added asserts to ensure we don't add new space pointers in constant ...
6 years, 5 months ago (2014-07-24 10:17:46 UTC) #3
Hannes Payer (out of office)
cool, lgtm
6 years, 5 months ago (2014-07-24 10:37:22 UTC) #4
rmcilroy
Committed patchset #3 manually as r22608 (presubmit successful).
6 years, 5 months ago (2014-07-24 18:13:28 UTC) #5
rmcilroy
On 2014/07/24 18:13:28, rmcilroy wrote: > Committed patchset #3 manually as r22608 (presubmit successful). Hannes, ...
6 years, 5 months ago (2014-07-25 16:05:19 UTC) #6
Hannes Payer (out of office)
LGTM https://codereview.chromium.org/396803009/diff/60001/test/cctest/test-constantpool.cc File test/cctest/test-constantpool.cc (right): https://codereview.chromium.org/396803009/diff/60001/test/cctest/test-constantpool.cc#newcode287 test/cctest/test-constantpool.cc:287: factory->NewFixedDoubleArray(900 * KB / kDoubleSize, TENURED); add a ...
6 years, 4 months ago (2014-07-28 08:26:07 UTC) #7
rmcilroy
Thanks. https://codereview.chromium.org/396803009/diff/60001/test/cctest/test-constantpool.cc File test/cctest/test-constantpool.cc (right): https://codereview.chromium.org/396803009/diff/60001/test/cctest/test-constantpool.cc#newcode287 test/cctest/test-constantpool.cc:287: factory->NewFixedDoubleArray(900 * KB / kDoubleSize, TENURED); On 2014/07/28 ...
6 years, 4 months ago (2014-07-28 09:21:05 UTC) #8
rmcilroy
6 years, 4 months ago (2014-07-28 10:04:43 UTC) #9
Message was sent while issue was closed.
Committed patchset #5 manually as r22634 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698