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

Issue 1204863006: Serializer: commit new internalized strings after deserialization. (Closed)

Created:
5 years, 6 months ago by Yang
Modified:
5 years, 6 months ago
Reviewers:
ulan
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Serializer: commit new internalized strings after deserialization. Reserving space for deserialization can cause GC, which can evict entries from the string table. Having more deleted entries now, StringTable::EnsureCapacity could cause a GC later during deserialization even when we actually still have enough capacity. Instead, we now keep new internalized strings in a separate list and commit them to the string table at the end. R=ulan@chromium.org BUG=chromium:502085 LOG=N Committed: https://crrev.com/cf21d22fd8209f11f88b8665e68a24627e3e5161 Cr-Commit-Position: refs/heads/master@{#29308}

Patch Set 1 #

Total comments: 1

Patch Set 2 : use a list of handles instead of a relocatable class #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -42 lines) Patch
M src/objects.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M src/snapshot/serialize.h View 1 7 chunks +15 lines, -21 lines 0 comments Download
M src/snapshot/serialize.cc View 1 2 8 chunks +32 lines, -21 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
Yang
5 years, 6 months ago (2015-06-25 09:42:39 UTC) #1
ulan
Looks good. One comment: https://codereview.chromium.org/1204863006/diff/1/src/snapshot/serialize.cc File src/snapshot/serialize.cc (right): https://codereview.chromium.org/1204863006/diff/1/src/snapshot/serialize.cc#newcode782 src/snapshot/serialize.cc:782: void Deserializer::NewInternalizedStrings::Commit(Isolate* isolate) { Please ...
5 years, 6 months ago (2015-06-25 09:49:42 UTC) #2
Yang
On 2015/06/25 09:49:42, ulan wrote: > Looks good. One comment: > > https://codereview.chromium.org/1204863006/diff/1/src/snapshot/serialize.cc > File ...
5 years, 6 months ago (2015-06-25 10:58:25 UTC) #3
ulan
lgtm
5 years, 6 months ago (2015-06-25 16:26:30 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1204863006/40001
5 years, 6 months ago (2015-06-25 18:13:31 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 6 months ago (2015-06-25 19:04:31 UTC) #7
commit-bot: I haz the power
5 years, 6 months ago (2015-06-25 19:04:44 UTC) #8
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/cf21d22fd8209f11f88b8665e68a24627e3e5161
Cr-Commit-Position: refs/heads/master@{#29308}

Powered by Google App Engine
This is Rietveld 408576698