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

Issue 2199863002: Clear recorded slots when making a string external. (Closed)

Created:
4 years, 4 months ago by ulan
Modified:
4 years, 1 month ago
Reviewers:
Jakob Kummerow
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Clear recorded slots when making a string external. Slots in ConsString/SlicedString can point to an evacutaion candidate. The MakeExternal function makes in-place conversion to external string. After the conversion we can have a recorded slot containing an external pointer. As long as the external pointer is aligned, this is not a problem. We clear the recorded slots to fix verify-heap checks. BUG=chromium:631969 LOG=NO

Patch Set 1 #

Patch Set 2 : x #

Total comments: 2

Patch Set 3 : fix typo #

Patch Set 4 : clear only if has pointers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -0 lines) Patch
M src/objects.cc View 1 2 3 4 chunks +8 lines, -0 lines 0 comments Download
M test/cctest/heap/test-heap.cc View 1 2 1 chunk +57 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
ulan
ptal
4 years, 4 months ago (2016-08-01 18:13:02 UTC) #2
Jakob Kummerow
LGTM, thanks for fixing this! https://codereview.chromium.org/2199863002/diff/20001/test/cctest/heap/test-heap.cc File test/cctest/heap/test-heap.cc (right): https://codereview.chromium.org/2199863002/diff/20001/test/cctest/heap/test-heap.cc#newcode6815 test/cctest/heap/test-heap.cc:6815: // Allocate two string ...
4 years, 4 months ago (2016-08-02 11:34:09 UTC) #3
ulan
https://codereview.chromium.org/2199863002/diff/20001/test/cctest/heap/test-heap.cc File test/cctest/heap/test-heap.cc (right): https://codereview.chromium.org/2199863002/diff/20001/test/cctest/heap/test-heap.cc#newcode6815 test/cctest/heap/test-heap.cc:6815: // Allocate two string in a fresh page and ...
4 years, 4 months ago (2016-08-02 15:00:24 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2199863002/40001
4 years, 4 months ago (2016-08-02 15:00:31 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_dbg_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_dbg_ng/builds/10145) v8_linux_dbg_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
4 years, 4 months ago (2016-08-02 15:19:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2199863002/60001
4 years, 4 months ago (2016-08-05 10:37:55 UTC) #12
commit-bot: I haz the power
4 years, 4 months ago (2016-08-05 10:57:02 UTC) #14
Try jobs failed on following builders:
  v8_linux64_asan_rel_ng on master.tryserver.v8 (JOB_FAILED,
http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng/buil...)
  v8_linux64_asan_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED,
http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng_trig...)

Powered by Google App Engine
This is Rietveld 408576698