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

Issue 1134523002: Implement timers by posting delayed tasks (Closed)

Created:
5 years, 7 months ago by Sami
Modified:
5 years, 6 months ago
CC:
aandrey+blink_chromium.org, darktears, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-wtf_chromium.org, dglazkov+blink, dstockwell, Eric Willigers, falken, gavinp+loader_chromium.org, horo+watch_chromium.org, Nate Chapin, kinuko+worker_chromium.org, Mike Lawther (Google), Mikhail, rjwright, shans, Steve Block, Timothy Loh, tyoshino+watch_chromium.org, sadrul
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Implement timers by posting delayed tasks This patch refactors TimerBase to post tasks delayed tasks and deletes the now-obsolete timer heap and shared timer mechanism. ATTN Sheriffs: If there are weird layout test flakes all of a sudden, this patch may be the cause since the interleaving of timers with other posted tasks will change. Original patch by Alex Clarke <alexclarke@chromium.org>;. BUG=463143, 416362, 480522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196308 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196497 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196595

Patch Set 1 #

Patch Set 2 : Fix tests. #

Patch Set 3 : Rebased on top of cleanup task removal patch. #

Patch Set 4 : Split out new tests. #

Patch Set 5 : Split out idle gc. #

Patch Set 6 : Rebased. #

Patch Set 7 : Use a cancellable task factory. #

Patch Set 8 : Simplify tests. #

Patch Set 9 : Gyp tweak. #

Total comments: 5

Patch Set 10 : Removed unneeded typedef change. #

Patch Set 11 : Rebased. #

Patch Set 12 : Rebased. #

Patch Set 13 : task() => cancelAndCreate() #

Patch Set 14 : Rebased again. #

Patch Set 15 : Added missing include. #

Patch Set 16 : Rebased. #

Patch Set 17 : Rebased again. #

Patch Set 18 : Rebase harder. #

Patch Set 19 : Rebased. #

Patch Set 20 : Rebased. #

Patch Set 21 : Rebased. #

Patch Set 22 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -996 lines) Patch
M Source/core/Init.cpp View 2 chunks +0 lines, -5 lines 0 comments Download
M Source/core/fetch/ResourceTest.cpp View 1 2 3 4 5 2 chunks +7 lines, -1 line 0 comments Download
M Source/core/frame/DOMTimerCoordinator.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/workers/WorkerThread.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +0 lines, -2 lines 0 comments Download
M Source/core/workers/WorkerThread.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +0 lines, -102 lines 0 comments Download
D Source/platform/PlatformThreadData.h View 1 chunk +0 lines, -59 lines 0 comments Download
D Source/platform/PlatformThreadData.cpp View 1 chunk +0 lines, -63 lines 0 comments Download
D Source/platform/SharedTimer.h View 1 2 3 4 5 1 chunk +0 lines, -75 lines 0 comments Download
D Source/platform/SharedTimer.cpp View 1 chunk +0 lines, -48 lines 0 comments Download
D Source/platform/ThreadTimers.h View 1 chunk +0 lines, -67 lines 0 comments Download
D Source/platform/ThreadTimers.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -153 lines 0 comments Download
M Source/platform/Timer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +9 lines, -26 lines 0 comments Download
M Source/platform/Timer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +34 lines, -322 lines 0 comments Download
M Source/platform/TimerTest.cpp View 1 2 3 4 5 7 chunks +104 lines, -52 lines 0 comments Download
M Source/platform/blink_platform.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +0 lines, -6 lines 0 comments Download
M Source/platform/scroll/ScrollableAreaTest.cpp View 1 2 3 4 5 6 7 3 chunks +68 lines, -3 lines 0 comments Download
M Source/web/tests/TextFinderTest.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M public/platform/Platform.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 97 (41 generated)
Sami
5 years, 7 months ago (2015-05-12 10:52:53 UTC) #2
Sami
Kinuko, does this look like a patch you could review? I'm not sure who knows ...
5 years, 7 months ago (2015-05-12 17:41:46 UTC) #4
kinuko
On 2015/05/12 17:41:46, Sami wrote: > Kinuko, does this look like a patch you could ...
5 years, 7 months ago (2015-05-13 02:21:22 UTC) #5
kinuko
I'm not fully sure if this runs perfectly in a way that is/was expected, but ...
5 years, 7 months ago (2015-05-13 08:26:39 UTC) #6
alex clarke (OOO till 29th)
https://codereview.chromium.org/1134523002/diff/160001/Source/platform/Timer.cpp File Source/platform/Timer.cpp (right): https://codereview.chromium.org/1134523002/diff/160001/Source/platform/Timer.cpp#newcode101 Source/platform/Timer.cpp:101: m_webScheduler->postTimerTask(m_location, m_cancellableTaskFactory.task(), delayMs); On 2015/05/13 08:26:39, kinuko wrote: > ...
5 years, 7 months ago (2015-05-13 08:43:01 UTC) #7
Sami
On 2015/05/13 08:26:39, kinuko wrote: > I'm not fully sure if this runs perfectly in ...
5 years, 7 months ago (2015-05-13 18:01:26 UTC) #9
jochen (gone - plz use gerrit)
it used to be the case that first setting a long fire time, and then ...
5 years, 7 months ago (2015-05-19 10:54:14 UTC) #10
alex clarke (OOO till 29th)
On 2015/05/19 10:54:14, jochen (traveling) wrote: > it used to be the case that first ...
5 years, 7 months ago (2015-05-19 10:56:21 UTC) #11
Sami
On 2015/05/19 10:54:14, jochen (traveling) wrote: > it used to be the case that first ...
5 years, 7 months ago (2015-05-19 11:07:42 UTC) #12
Sami
I checked that the failure from the win trybot (plugins/netscape-plugin-setwindow-size-2.html) doesn't seem to be related ...
5 years, 7 months ago (2015-05-20 18:12:06 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/1134523002/260001
5 years, 7 months ago (2015-05-20 18:20:09 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_compile_dbg/builds/45719)
5 years, 7 months ago (2015-05-20 18:40:27 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/1134523002/280001
5 years, 7 months ago (2015-05-20 18:53:17 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/62406)
5 years, 7 months ago (2015-05-20 20:16:32 UTC) #23
jochen (gone - plz use gerrit)
lgtm
5 years, 7 months ago (2015-05-21 07:50:56 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134523002/300001
5 years, 7 months ago (2015-05-21 10:05:11 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/45153) mac_blink_rel on tryserver.blink (JOB_FAILED, ...
5 years, 7 months ago (2015-05-21 10:08:00 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134523002/320001
5 years, 7 months ago (2015-05-21 15:30:23 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/45185) mac_blink_rel on tryserver.blink (JOB_FAILED, ...
5 years, 7 months ago (2015-05-21 15:33:49 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134523002/340001
5 years, 7 months ago (2015-05-21 15:39:00 UTC) #38
commit-bot: I haz the power
Committed patchset #18 (id:340001) as https://src.chromium.org/viewvc/blink?view=rev&revision=195706
5 years, 7 months ago (2015-05-21 17:11:50 UTC) #39
Julien - ping for review
A revert of this CL (patchset #18 id:340001) has been created in https://codereview.chromium.org/1151633004/ by jchaffraix@chromium.org. ...
5 years, 7 months ago (2015-05-21 19:59:43 UTC) #40
sof
ftr, some Oilpan ASAN breakage seen too, http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Oilpan%20ASAN/builds/1372 (The oilpan team can probably take care ...
5 years, 7 months ago (2015-05-21 20:10:06 UTC) #42
Julien - ping for review
Failures: DomSerializerTests.* were timing out, locally I got the following backtrace: BrowserTestBase signal handler received ...
5 years, 7 months ago (2015-05-21 21:10:42 UTC) #44
Julien - ping for review
(Forgot some information, sorry for the spam) On 2015/05/21 at 21:10:42, Julien Chaffraix - PST ...
5 years, 7 months ago (2015-05-21 21:16:52 UTC) #45
Sami
We believe https://codereview.chromium.org/1153763005/ addresses the timeouts that this was causing, but there's a chance it ...
5 years, 7 months ago (2015-05-22 17:41:22 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134523002/340001
5 years, 7 months ago (2015-05-22 17:42:46 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/56170)
5 years, 7 months ago (2015-05-22 20:55:46 UTC) #50
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134523002/340001
5 years, 7 months ago (2015-05-26 10:32:29 UTC) #52
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/63169)
5 years, 7 months ago (2015-05-26 12:43:13 UTC) #54
Sami
To give an update, the main layout test failure seems to be inspector/sources/debugger/async-callstack-events.html, and it's ...
5 years, 7 months ago (2015-05-27 09:44:20 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134523002/380001
5 years, 6 months ago (2015-05-28 15:52:39 UTC) #58
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/63680)
5 years, 6 months ago (2015-05-28 18:04:36 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134523002/380001
5 years, 6 months ago (2015-05-29 08:37:59 UTC) #62
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/63860)
5 years, 6 months ago (2015-05-29 10:53:11 UTC) #64
Sami
The failing layout test was fixed with https://codereview.chromium.org/1148293010/.
5 years, 6 months ago (2015-05-29 13:44:58 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134523002/380001
5 years, 6 months ago (2015-05-29 13:45:39 UTC) #67
commit-bot: I haz the power
Committed patchset #20 (id:380001) as https://src.chromium.org/viewvc/blink?view=rev&revision=196152
5 years, 6 months ago (2015-05-29 15:08:23 UTC) #68
Sami
The failing mojo test was fixed with https://codereview.chromium.org/1145973011, so let's give this another shot.
5 years, 6 months ago (2015-06-01 18:23:21 UTC) #69
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134523002/400001
5 years, 6 months ago (2015-06-01 18:24:27 UTC) #72
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/64628)
5 years, 6 months ago (2015-06-01 21:21:27 UTC) #74
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134523002/400001
5 years, 6 months ago (2015-06-02 09:40:38 UTC) #76
commit-bot: I haz the power
Committed patchset #21 (id:400001) as https://src.chromium.org/viewvc/blink?view=rev&revision=196308
5 years, 6 months ago (2015-06-02 11:00:20 UTC) #77
Sami
A revert of this CL (patchset #21 id:400001) has been created in https://codereview.chromium.org/1162903005/ by skyostil@chromium.org. ...
5 years, 6 months ago (2015-06-02 14:24:58 UTC) #78
Sami
Update: Once https://codereview.chromium.org/1152623008/ lands to fix the memory leak issue I'll give this one another ...
5 years, 6 months ago (2015-06-03 18:21:29 UTC) #79
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134523002/420001
5 years, 6 months ago (2015-06-03 21:37:22 UTC) #82
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/64859)
5 years, 6 months ago (2015-06-03 22:13:35 UTC) #84
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134523002/420001
5 years, 6 months ago (2015-06-04 08:08:26 UTC) #86
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134523002/420001
5 years, 6 months ago (2015-06-04 11:54:11 UTC) #89
commit-bot: I haz the power
Committed patchset #22 (id:420001) as https://src.chromium.org/viewvc/blink?view=rev&revision=196497
5 years, 6 months ago (2015-06-04 13:11:09 UTC) #90
leviw_travelin_and_unemployed
On 2015/06/04 at 13:11:09, commit-bot wrote: > Committed patchset #22 (id:420001) as https://src.chromium.org/viewvc/blink?view=rev&revision=196497 Any chance ...
5 years, 6 months ago (2015-06-05 03:11:37 UTC) #91
Yuta Kitamura
On 2015/06/05 03:11:37, leviw wrote: > On 2015/06/04 at 13:11:09, commit-bot wrote: > > Committed ...
5 years, 6 months ago (2015-06-05 04:19:21 UTC) #92
Yuta Kitamura
A revert of this CL (patchset #22 id:420001) has been created in https://codereview.chromium.org/1167023002/ by yutak@chromium.org. ...
5 years, 6 months ago (2015-06-05 04:27:35 UTC) #93
Sami
This time around it looks like the leak is a false positive from LSAN. I'll ...
5 years, 6 months ago (2015-06-05 14:32:10 UTC) #94
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134523002/420001
5 years, 6 months ago (2015-06-05 16:31:15 UTC) #96
commit-bot: I haz the power
5 years, 6 months ago (2015-06-05 18:30:15 UTC) #97
Message was sent while issue was closed.
Committed patchset #22 (id:420001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196595

Powered by Google App Engine
This is Rietveld 408576698