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

Issue 1105293004: Add mode to reduce memory usage in idle notification. (Closed)

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

Description

Add mode to reduce memory usage in idle notification. While the mutator is active, the idle time handler optimizes for latency by doing only incremental steps and scavenges. When the mutator becomes inactive, the idle time handler forces few incremental GCs to reclaim memory and then stops until mutator is active again. BUG=460090 LOG=N Committed: https://crrev.com/ae6a0b807574d4349be9c45428960ac7ecd3679a Cr-Commit-Position: refs/heads/master@{#28300}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Add tests #

Patch Set 4 : #

Patch Set 5 : x #

Total comments: 15

Patch Set 6 : Address comments #

Total comments: 26

Patch Set 7 : Address comments #

Total comments: 4

Patch Set 8 : Add checks in tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+479 lines, -274 lines) Patch
M src/heap/gc-idle-time-handler.h View 1 2 3 4 5 6 7 9 chunks +56 lines, -42 lines 0 comments Download
M src/heap/gc-idle-time-handler.cc View 1 2 3 4 5 6 4 chunks +131 lines, -33 lines 0 comments Download
M src/heap/heap.cc View 1 2 3 4 5 6 4 chunks +9 lines, -2 lines 0 comments Download
M test/cctest/test-heap.cc View 1 2 3 4 5 6 2 chunks +4 lines, -27 lines 0 comments Download
M test/unittests/heap/gc-idle-time-handler-unittest.cc View 1 2 3 4 5 6 7 18 chunks +279 lines, -170 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
ulan
PTAL
5 years, 7 months ago (2015-05-04 09:18:27 UTC) #2
Hannes Payer (out of office)
Looking good overall. Please run the smoothness test to see if we tank latency. Please ...
5 years, 7 months ago (2015-05-04 11:20:37 UTC) #3
ulan
Thanks, I uploaded new PS. > Please add unit tests for the helper functions like ...
5 years, 7 months ago (2015-05-05 12:10:13 UTC) #4
Hannes Payer (out of office)
We would have to move the counters to heap, and add them to the HeapState ...
5 years, 7 months ago (2015-05-05 20:51:16 UTC) #5
Erik Corry
https://codereview.chromium.org/1105293004/diff/100001/src/heap/gc-idle-time-handler.cc File src/heap/gc-idle-time-handler.cc (right): https://codereview.chromium.org/1105293004/diff/100001/src/heap/gc-idle-time-handler.cc#newcode198 src/heap/gc-idle-time-handler.cc:198: // In kReduceLatency mode the handler does only start ...
5 years, 7 months ago (2015-05-05 21:38:53 UTC) #7
ulan
Thank you for reviewing! I uploaded new PS. https://codereview.chromium.org/1105293004/diff/100001/src/heap/gc-idle-time-handler.cc File src/heap/gc-idle-time-handler.cc (right): https://codereview.chromium.org/1105293004/diff/100001/src/heap/gc-idle-time-handler.cc#newcode198 src/heap/gc-idle-time-handler.cc:198: // ...
5 years, 7 months ago (2015-05-06 09:47:19 UTC) #8
Erik Corry
https://codereview.chromium.org/1105293004/diff/100001/src/heap/gc-idle-time-handler.cc File src/heap/gc-idle-time-handler.cc (right): https://codereview.chromium.org/1105293004/diff/100001/src/heap/gc-idle-time-handler.cc#newcode199 src/heap/gc-idle-time-handler.cc:199: // if can_start_incremental_marking is false. On 2015/05/06 09:47:19, ulan ...
5 years, 7 months ago (2015-05-06 09:57:29 UTC) #9
Hannes Payer (out of office)
https://codereview.chromium.org/1105293004/diff/100001/src/heap/gc-idle-time-handler.h File src/heap/gc-idle-time-handler.h (right): https://codereview.chromium.org/1105293004/diff/100001/src/heap/gc-idle-time-handler.h#newcode152 src/heap/gc-idle-time-handler.h:152: static const int kGCsBeforeMutatorIsActive = 7; On 2015/05/06 09:57:29, ...
5 years, 7 months ago (2015-05-07 08:21:52 UTC) #10
ulan
https://codereview.chromium.org/1105293004/diff/100001/src/heap/gc-idle-time-handler.cc File src/heap/gc-idle-time-handler.cc (right): https://codereview.chromium.org/1105293004/diff/100001/src/heap/gc-idle-time-handler.cc#newcode199 src/heap/gc-idle-time-handler.cc:199: // if can_start_incremental_marking is false. On 2015/05/06 09:57:29, Erik ...
5 years, 7 months ago (2015-05-07 10:33:31 UTC) #11
Erik Corry
lgtm
5 years, 7 months ago (2015-05-07 13:24:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1105293004/140001
5 years, 7 months ago (2015-05-07 14:09:47 UTC) #15
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 7 months ago (2015-05-07 14:41:57 UTC) #16
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/ae6a0b807574d4349be9c45428960ac7ecd3679a Cr-Commit-Position: refs/heads/master@{#28300}
5 years, 7 months ago (2015-05-07 14:42:11 UTC) #17
Erik Corry
5 years, 7 months ago (2015-05-10 12:09:33 UTC) #18
Message was sent while issue was closed.
This is in Canary 2396
It is referenced from https://code.google.com/p/chromium/issues/detail?id=486005

Powered by Google App Engine
This is Rietveld 408576698