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

Issue 1415733004: Reland of "[heap] Divide available memory upon compaction tasks" (Closed)

Created:
5 years, 2 months ago by Michael Lippautz
Modified:
5 years, 2 months ago
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

Reland of "[heap] Divide available memory upon compaction tasks" This reverts commit cf71c28f13425d0e8c041391a2b37f0908b9e4b5. Original message: [heap] Divide available memory upon compaction tasks - Fairly (round-robin) divide available memory upon compaction tasks. - Ensure an upper limit (of memory) since dividing is O(n) for n free-space nodes. - Refill from free lists managed by sweeper once a compaction space becomes empty. Assumption for dividing memory: Memory in the free lists is sparse upon starting compaction (which means that only few nodes are available), except for memory reducer GCs, which happen in idle time though (so it's less of a problem). BUG=chromium:524425 LOG=N Committed: https://crrev.com/63f42ecb965d04877f45043c1416170b6f79b962 Cr-Commit-Position: refs/heads/master@{#31436}

Patch Set 1 : baseline (failing CL) #

Patch Set 2 : Fix returning left over memory and add proper checks #

Total comments: 2

Patch Set 3 : Addressed comment #

Patch Set 4 : Rebase #

Patch Set 5 : Fix size computation in TryRemoveMemory #

Unified diffs Side-by-side diffs Delta from patch set Stats (+377 lines, -66 lines) Patch
M src/heap/heap.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/heap/mark-compact.h View 2 chunks +14 lines, -2 lines 0 comments Download
M src/heap/mark-compact.cc View 4 chunks +7 lines, -30 lines 0 comments Download
M src/heap/spaces.h View 6 chunks +31 lines, -4 lines 0 comments Download
M src/heap/spaces.cc View 1 2 3 4 6 chunks +136 lines, -8 lines 0 comments Download
M test/cctest/heap-tester.h View 2 chunks +32 lines, -11 lines 0 comments Download
M test/cctest/test-spaces.cc View 5 chunks +156 lines, -11 lines 0 comments Download

Messages

Total messages: 30 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415733004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415733004/20001
5 years, 2 months ago (2015-10-20 13:46:57 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-20 14:25:25 UTC) #5
Michael Lippautz
PTAL
5 years, 2 months ago (2015-10-21 09:52:45 UTC) #7
Hannes Payer (out of office)
LGTM, with one nit. https://codereview.chromium.org/1415733004/diff/20001/src/heap/spaces.cc File src/heap/spaces.cc (right): https://codereview.chromium.org/1415733004/diff/20001/src/heap/spaces.cc#newcode2492 src/heap/spaces.cc:2492: intptr_t aligned_size = RoundUp(hint_size_in_bytes, FreeSpace::kMinSize); ...
5 years, 2 months ago (2015-10-21 10:10:46 UTC) #8
Michael Lippautz
https://codereview.chromium.org/1415733004/diff/20001/src/heap/spaces.cc File src/heap/spaces.cc (right): https://codereview.chromium.org/1415733004/diff/20001/src/heap/spaces.cc#newcode2492 src/heap/spaces.cc:2492: intptr_t aligned_size = RoundUp(hint_size_in_bytes, FreeSpace::kMinSize); On 2015/10/21 10:10:46, Hannes ...
5 years, 2 months ago (2015-10-21 10:25:51 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415733004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415733004/60001
5 years, 2 months ago (2015-10-21 10:27:19 UTC) #11
commit-bot: I haz the power
Dry run: 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/10923)
5 years, 2 months ago (2015-10-21 10:40:34 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415733004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415733004/100001
5 years, 2 months ago (2015-10-21 11:00:13 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-21 11:23:20 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415733004/90008 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415733004/90008
5 years, 2 months ago (2015-10-21 11:27:26 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-21 11:58:54 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415733004/90008 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415733004/90008
5 years, 2 months ago (2015-10-21 12:03:16 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:90008)
5 years, 2 months ago (2015-10-21 12:05:25 UTC) #28
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/63f42ecb965d04877f45043c1416170b6f79b962 Cr-Commit-Position: refs/heads/master@{#31436}
5 years, 2 months ago (2015-10-21 12:05:55 UTC) #29
Michael Lippautz
5 years, 2 months ago (2015-10-21 13:14:03 UTC) #30
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:90008) has been created in
https://codereview.chromium.org/1405273003/ by mlippautz@chromium.org.

The reason for reverting is: Failing again:
http://build.chromium.org/p/client.v8/builders/V8%20Linux64%20GC%20Stress%20-....

Powered by Google App Engine
This is Rietveld 408576698