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

Issue 2232653003: Reland of "[heap] Switch to 500k pages" (Closed)

Created:
4 years, 4 months ago by Michael Lippautz
Modified:
4 years, 4 months ago
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), ulan, Yang
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Reland of "[heap] Switch to 500k pages" Decrease regular heap object size to 400k. In a follow up, we can now get rid of the new space border page while keeping the 1M minimum new space size. BUG=chromium:636331 This reverts commit 555c961990088d545e2b475da3872bd63fa27569. Committed: https://crrev.com/20e2ea80e169e85c5b8231adc02901fb6c989609 Cr-Commit-Position: refs/heads/master@{#38608}

Patch Set 1 : base #

Patch Set 2 : fixes #

Patch Set 3 : kMaxRegularHeapObjectSize: 300k -> 400k #

Patch Set 4 : s/ShrinkPagesToHighWaterMark/ShrinkImmortalImmovablePages/ #

Total comments: 8

Patch Set 5 : Switch back to using the high water mark. Also: dont sweep immortal immovable pages #

Total comments: 1

Patch Set 6 : Rely GC not happening during deserialization of the isolate snapshot #

Patch Set 7 : Dont shrink the space for immortal immovable pages #

Patch Set 8 : Fix ParallelSweepPage #

Patch Set 9 : Sweep immortal immovables ;) #

Total comments: 10

Patch Set 10 : Addressed comments #

Total comments: 2

Patch Set 11 : Add cctests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -131 lines) Patch
M src/base/build_config.h View 1 chunk +1 line, -1 line 0 comments Download
M src/heap/heap.cc View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -5 lines 0 comments Download
M src/heap/mark-compact.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -4 lines 0 comments Download
M src/heap/spaces.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +14 lines, -2 lines 0 comments Download
M src/heap/spaces.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +71 lines, -10 lines 0 comments Download
M src/isolate.cc View 1 2 3 4 5 2 chunks +13 lines, -9 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M src/snapshot/snapshot.h View 2 chunks +4 lines, -12 lines 0 comments Download
M src/snapshot/snapshot-common.cc View 4 chunks +3 lines, -67 lines 0 comments Download
M test/cctest/heap/heap-utils.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M test/cctest/heap/heap-utils.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +29 lines, -0 lines 0 comments Download
M test/cctest/heap/test-heap.cc View 1 2 3 4 5 6 7 8 4 chunks +20 lines, -7 lines 0 comments Download
M test/cctest/heap/test-spaces.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +117 lines, -8 lines 0 comments Download
M test/cctest/test-serialize.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 55 (41 generated)
Hannes Payer (out of office)
https://codereview.chromium.org/2232653003/diff/80001/src/heap/spaces.cc File src/heap/spaces.cc (right): https://codereview.chromium.org/2232653003/diff/80001/src/heap/spaces.cc#newcode1245 src/heap/spaces.cc:1245: for (HeapObject* obj = it.Next(); obj != nullptr; obj ...
4 years, 4 months ago (2016-08-10 21:17:35 UTC) #14
Michael Lippautz
See delta PS4-PS5 https://codereview.chromium.org/2232653003/diff/80001/src/heap/spaces.cc File src/heap/spaces.cc (right): https://codereview.chromium.org/2232653003/diff/80001/src/heap/spaces.cc#newcode1245 src/heap/spaces.cc:1245: for (HeapObject* obj = it.Next(); obj ...
4 years, 4 months ago (2016-08-11 09:48:13 UTC) #15
Hannes Payer (out of office)
https://codereview.chromium.org/2232653003/diff/180001/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/2232653003/diff/180001/src/heap/heap.cc#newcode5431 src/heap/heap.cc:5431: deserialization_complete_ = true; Can you move deserialization_complete_ = true; ...
4 years, 4 months ago (2016-08-11 20:12:24 UTC) #32
Michael Lippautz
Thanks for the comments! All addressed. https://codereview.chromium.org/2232653003/diff/180001/src/heap/heap.cc File src/heap/heap.cc (right): https://codereview.chromium.org/2232653003/diff/180001/src/heap/heap.cc#newcode5431 src/heap/heap.cc:5431: deserialization_complete_ = true; ...
4 years, 4 months ago (2016-08-12 06:45:59 UTC) #33
Hannes Payer (out of office)
https://codereview.chromium.org/2232653003/diff/200001/src/heap/spaces.cc File src/heap/spaces.cc (right): https://codereview.chromium.org/2232653003/diff/200001/src/heap/spaces.cc#newcode1232 src/heap/spaces.cc:1232: void PagedSpace::ShrinkImmortalImmovablePages() { Please write tests for these methods ...
4 years, 4 months ago (2016-08-12 07:59:48 UTC) #38
Michael Lippautz
I added a couple of cctests. No unit tests since we need a proper Heap ...
4 years, 4 months ago (2016-08-12 09:29:51 UTC) #39
Hannes Payer (out of office)
lgtm
4 years, 4 months ago (2016-08-12 09:34:01 UTC) #40
Michael Lippautz
+Yang for snapshot/ Nothing actually changed there ;)
4 years, 4 months ago (2016-08-12 09:38:34 UTC) #43
Michael Lippautz
4 years, 4 months ago (2016-08-12 09:38:56 UTC) #45
Yang
lgtm
4 years, 4 months ago (2016-08-12 10:34:59 UTC) #48
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/2232653003/220001
4 years, 4 months ago (2016-08-12 10:56:58 UTC) #50
commit-bot: I haz the power
Committed patchset #11 (id:220001)
4 years, 4 months ago (2016-08-12 11:06:56 UTC) #52
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/20e2ea80e169e85c5b8231adc02901fb6c989609 Cr-Commit-Position: refs/heads/master@{#38608}
4 years, 4 months ago (2016-08-12 11:07:14 UTC) #54
Michael Lippautz
4 years, 4 months ago (2016-08-12 11:42:13 UTC) #55
Message was sent while issue was closed.
A revert of this CL (patchset #11 id:220001) has been created in
https://codereview.chromium.org/2239323002/ by mlippautz@chromium.org.

The reason for reverting is: Breaks benchmark with --turbo on avx2

https://build.chromium.org/p/client.v8/builders/V8%20Linux64%20-%20avx2/build....

Powered by Google App Engine
This is Rietveld 408576698