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

Issue 1042483002: Ensure that GC idle notifications either make progress or stop requesting more GCs. (Closed)

Created:
5 years, 9 months ago by rmcilroy
Modified:
5 years, 8 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

Ensure that GC idle notifications either make progress or stop requesting more GCs. The V8::IdleNotification will only return 'True' when the gc idle time handler thinks there is no more GC which can be done. However, the gc idle task handler can end up repeatedly making no progress (e.g., if it can't finalize a sweep) which causes idle tasks to be repeatedly scheduled in Chrome which do nothing but wake up Chrome. Fix this by returning Done if we can't make any progress within an Idle Round. BUG=chromium:470615 LOG=Y Committed: https://crrev.com/00477a5d72e1246d9611966a0b4c708f90a2228e Cr-Commit-Position: refs/heads/master@{#27529}

Patch Set 1 #

Patch Set 2 : Add tests #

Patch Set 3 : size_t -> int #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -8 lines) Patch
M src/heap/gc-idle-time-handler.h View 1 2 4 chunks +14 lines, -2 lines 0 comments Download
M src/heap/gc-idle-time-handler.cc View 1 2 chunks +20 lines, -6 lines 0 comments Download
M test/unittests/heap/gc-idle-time-handler-unittest.cc View 1 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
rmcilroy
PTAL, thanks.
5 years, 9 months ago (2015-03-27 17:41:22 UTC) #2
Hannes Payer (out of office)
What about the following scenario: We just finished a full gc and it while take ...
5 years, 9 months ago (2015-03-27 19:04:19 UTC) #3
rmcilroy
On 2015/03/27 19:04:19, Hannes Payer wrote: > What about the following scenario: > We just ...
5 years, 9 months ago (2015-03-27 19:41:19 UTC) #4
Hannes Payer (out of office)
OK, sounds good. Please add a unit test.
5 years, 8 months ago (2015-03-30 08:31:17 UTC) #5
rmcilroy
On 2015/03/30 08:31:17, Hannes Payer wrote: > OK, sounds good. Please add a unit test. ...
5 years, 8 months ago (2015-03-30 12:21:48 UTC) #6
Hannes Payer (out of office)
lgtm
5 years, 8 months ago (2015-03-30 13:46:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1042483002/20001
5 years, 8 months ago (2015-03-30 13:47:13 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_gcc_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_gcc_compile_rel/builds/1271)
5 years, 8 months ago (2015-03-30 13:55:22 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1042483002/40001
5 years, 8 months ago (2015-03-30 16:22:49 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 8 months ago (2015-03-30 17:04:53 UTC) #15
commit-bot: I haz the power
5 years, 8 months ago (2015-03-30 17:05:14 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/00477a5d72e1246d9611966a0b4c708f90a2228e
Cr-Commit-Position: refs/heads/master@{#27529}

Powered by Google App Engine
This is Rietveld 408576698