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

Issue 2635973002: [heap] Don't allocate immovable code in LO space during serialization (Closed)

Created:
3 years, 11 months ago by jgruber
Modified:
3 years, 11 months ago
CC:
v8-reviews_googlegroups.com, ulan
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[heap] Don't allocate immovable code in LO space during serialization Background: the first page of each space is implicitly immovable. Recently, our builtin code objects have reached a size at which we fill up the first page of code space during initialization. Once that occurs, newly requested allocations of immovable code are allocated in a large object space page of 512K. This CL mitigates these effects by simply marking pages as immovable during snapshot creation instead of going into LO space. On snapshot builds, this should just work: deserialized pages are trimmed and marked immovable when deserialization finishes. However, non-snapshot builds and allocations of immovable CEntryStub code at runtime are still affected. BUG=v8:5831 Review-Url: https://codereview.chromium.org/2635973002 Cr-Commit-Position: refs/heads/master@{#42411} Committed: https://chromium.googlesource.com/v8/v8/+/47684fe852eb4f2de546b656b8268d0a161b57c9

Patch Set 1 #

Patch Set 2 : Comment and add back FirstPage references #

Patch Set 3 : Add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -12 lines) Patch
M src/code-stubs.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M src/heap/heap.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/heap/heap.cc View 1 2 chunks +21 lines, -10 lines 0 comments Download
M src/isolate.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/heap/heap-tester.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/heap/test-heap.cc View 1 2 2 chunks +53 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (18 generated)
jgruber
No tests since we don't seem to have a setup that can conveniently test snapshot ...
3 years, 11 months ago (2017-01-17 08:37:35 UTC) #11
Michael Lippautz
On 2017/01/17 08:37:35, jgruber wrote: > No tests since we don't seem to have a ...
3 years, 11 months ago (2017-01-17 12:08:12 UTC) #12
jgruber
Added a test (with hacky fake snapshot-creation). Hannes, PTAL.
3 years, 11 months ago (2017-01-17 13:21:56 UTC) #15
Hannes Payer (out of office)
lgtm
3 years, 11 months ago (2017-01-17 14:13:25 UTC) #18
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/2635973002/40001
3 years, 11 months ago (2017-01-17 14:18:26 UTC) #21
commit-bot: I haz the power
3 years, 11 months ago (2017-01-17 14:20:05 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/47684fe852eb4f2de546b656b8268d0a161...

Powered by Google App Engine
This is Rietveld 408576698