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

Issue 1675553002: [serializer] Ensure immortal immovable roots are deserialized correctly. (Closed)

Created:
4 years, 10 months ago by Yang
Modified:
4 years, 10 months ago
Reviewers:
Michael Starzinger
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

[serializer] Ensure immortal immovable roots are deserialized correctly. The serializer collects objects in iteration order, not in allocation order. This means that the deserializer will put these objects in iteration order onto the reserved pages as well. There is no guarantee that objects that were on the first page will end up on the first page after deserialization. Until now we got lucky, since we only ever need one space per page for the default snapshot. For roots, the iteration order and allocation order also do not differ enough to cause any issue for immortal immovable root objects. These objects need to stay on the first page of its allocated space to not move. However, let's make sure it stays this way, and we realize soon enough if this assumption does not hold. R=mstarzinger@chromium.org Committed: https://crrev.com/07d40b74b6e33df99e5d52de4fe56893568fa16d Cr-Commit-Position: refs/heads/master@{#33810}

Patch Set 1 #

Total comments: 4

Patch Set 2 : addressed comment #

Patch Set 3 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -6 lines) Patch
M src/address-map.cc View 1 2 2 chunks +7 lines, -2 lines 0 comments Download
M src/snapshot/serialize.cc View 1 2 2 chunks +16 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
Yang
4 years, 10 months ago (2016-02-05 06:13:48 UTC) #1
Michael Starzinger
https://codereview.chromium.org/1675553002/diff/1/src/address-map.cc File src/address-map.cc (right): https://codereview.chromium.org/1675553002/diff/1/src/address-map.cc#newcode36 src/address-map.cc:36: CHECK(!Heap::RootIsImmortalImmovable(root_index)); I am not sure about this check. It ...
4 years, 10 months ago (2016-02-05 14:47:59 UTC) #2
Yang
On 2016/02/05 14:47:59, Michael Starzinger wrote: > https://codereview.chromium.org/1675553002/diff/1/src/address-map.cc > File src/address-map.cc (right): > > https://codereview.chromium.org/1675553002/diff/1/src/address-map.cc#newcode36 ...
4 years, 10 months ago (2016-02-05 14:55:23 UTC) #3
Michael Starzinger
Fair enough, fine with me, just one last suggestion to maybe avoid this confusion. Otherwise ...
4 years, 10 months ago (2016-02-05 15:03:21 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1675553002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1675553002/20001
4 years, 10 months ago (2016-02-08 07:53:57 UTC) #7
Yang
https://codereview.chromium.org/1675553002/diff/1/src/address-map.cc File src/address-map.cc (right): https://codereview.chromium.org/1675553002/diff/1/src/address-map.cc#newcode23 src/address-map.cc:23: isolate->heap()->RootCanBeTreatedAsConstant(root_index)) { On 2016/02/05 15:03:21, Michael Starzinger wrote: > ...
4 years, 10 months ago (2016-02-08 07:53:59 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: v8_mac_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel/builds/15111)
4 years, 10 months ago (2016-02-08 07:57:39 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1675553002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1675553002/40001
4 years, 10 months ago (2016-02-08 10:26:58 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-08 10:48:21 UTC) #14
commit-bot: I haz the power
4 years, 10 months ago (2016-02-08 10:49:06 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/07d40b74b6e33df99e5d52de4fe56893568fa16d
Cr-Commit-Position: refs/heads/master@{#33810}

Powered by Google App Engine
This is Rietveld 408576698