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

Issue 971283002: Add canExceedIdleDeadlineIfRequired function to Scheduler and use it in Oilpan (Closed)

Created:
5 years, 9 months ago by rmcilroy
Modified:
5 years, 9 months ago
CC:
Mads Ager (chromium), blink-reviews, dglazkov+blink, haraken, kouhei+heap_chromium.org, oilpan-reviews, scheduler-bugs_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add canExceedIdleDeadlineIfRequired function to Scheduler and use it in Oilpan. Adds a canExceedIdleDeadlineIfRequired function to the Scheduler to enable IdleTasks to estimate the best time for them to exceed their deadline if they have a large monolithic task which could not be run otherwise. Modifies the Oilpan performIdleTask to perform the GC if it would exceed it's deadline but the scheduler returns true from canExceedIdleDeadlineIfRequired. Chromium side of patch: https://codereview.chromium.org/969373002/edit Long idle task design doc: https://docs.google.com/a/chromium.org/document/d/1yBlUdYW8VTIfB-DqhvQqUeP0kf-Ap1W4cao2yQq58Do/edit BUG=455713 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192006

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rebase and change API to canExceedIdleDeadlineIfRequired #

Total comments: 2

Patch Set 3 : Fix Typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -1 line) Patch
M Source/platform/heap/ThreadState.cpp View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M Source/platform/scheduler/Scheduler.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
M Source/platform/scheduler/Scheduler.cpp View 1 1 chunk +7 lines, -0 lines 0 comments Download
M public/platform/WebScheduler.h View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
rmcilroy
haraken@ / kouhei@: Please take a look at the Oilpan change. Sami: Please take a ...
5 years, 9 months ago (2015-03-03 12:37:48 UTC) #2
haraken
LGTM As kouhei mentioned in #5 in https://codereview.chromium.org/965283002/, the current heuristic (i.e, idleDeltaInSeconds <= Heap::estimatedMarkingTime()) ...
5 years, 9 months ago (2015-03-03 15:10:39 UTC) #3
rmcilroy
https://codereview.chromium.org/971283002/diff/1/Source/platform/heap/ThreadState.cpp File Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/971283002/diff/1/Source/platform/heap/ThreadState.cpp#newcode737 Source/platform/heap/ThreadState.cpp:737: // FIXME: Make this precise once idle task is ...
5 years, 9 months ago (2015-03-03 15:20:02 UTC) #4
rmcilroy
https://codereview.chromium.org/971283002/diff/1/Source/platform/heap/ThreadState.cpp File Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/971283002/diff/1/Source/platform/heap/ThreadState.cpp#newcode737 Source/platform/heap/ThreadState.cpp:737: // FIXME: Make this precise once idle task is ...
5 years, 9 months ago (2015-03-03 19:39:09 UTC) #5
kouhei (in TOK)
lgtm I think we should proceed with this landing now. The heuristics in my CL ...
5 years, 9 months ago (2015-03-04 08:25:45 UTC) #6
rmcilroy
Rebased and changed API to canExceedIdleDeadlineIfRequired - PTAL. Jochen: PTAL at public/platform/WebScheduler.h, thanks. https://codereview.chromium.org/971283002/diff/1/Source/platform/heap/ThreadState.cpp File ...
5 years, 9 months ago (2015-03-17 10:33:30 UTC) #8
jochen (gone - plz use gerrit)
lgtm
5 years, 9 months ago (2015-03-17 10:37:05 UTC) #9
kouhei (in TOK)
lgtm https://codereview.chromium.org/971283002/diff/20001/Source/platform/heap/ThreadState.cpp File Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/971283002/diff/20001/Source/platform/heap/ThreadState.cpp#newcode596 Source/platform/heap/ThreadState.cpp:596: // exceed the deadline, the reschedule for the ...
5 years, 9 months ago (2015-03-17 10:37:30 UTC) #10
rmcilroy
https://codereview.chromium.org/971283002/diff/20001/Source/platform/heap/ThreadState.cpp File Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/971283002/diff/20001/Source/platform/heap/ThreadState.cpp#newcode596 Source/platform/heap/ThreadState.cpp:596: // exceed the deadline, the reschedule for the next ...
5 years, 9 months ago (2015-03-17 10:55:25 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/971283002/40001
5 years, 9 months ago (2015-03-17 10:55:48 UTC) #14
commit-bot: I haz the power
5 years, 9 months ago (2015-03-17 12:37:43 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192006

Powered by Google App Engine
This is Rietveld 408576698