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

Issue 2326313003: Revert of Make canceling Timers fast. (Closed)

Created:
4 years, 3 months ago by fs
Modified:
4 years, 3 months ago
CC:
altimin, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dglazkov+blink, esprehn, scheduler-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Make canceling Timers fast. (patchset #10 id:180001 of https://codereview.chromium.org/2319053004/ ) Reason for revert: Wreaks havoc on the ASAN bots: https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20ASAN STDERR: ================================================================= STDERR: ==4==ERROR: AddressSanitizer: use-after-poison on address 0x7ed9a5616190 at pc 0x00000768b0da bp 0x7fff4bbca630 sp 0x7fff4bbca628 STDERR: READ of size 8 at 0x7ed9a5616190 thread T0 (content_shell) STDERR: #0 0x768b0d9 in operator-> third_party/WebKit/Source/wtf/RefPtr.h:68:50 STDERR: #1 0x768b0d9 in revokeAll third_party/WebKit/Source/wtf/WeakPtr.h:146:0 STDERR: #2 0x768b344 in ?? third_party/WebKit/Source/platform/Timer.cpp:124:22 STDERR: #3 0x47a4461 in Run base/callback.h:56:12 STDERR: #4 0x47a4461 in RunTask base/debug/task_annotator.cc:54:0 STDERR: #5 0x79e2381 in ProcessTaskFromWorkQueue third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc:316:19 ... STDERR: AddressSanitizer can not describe address in more detail (wild memory access suspected). STDERR: SUMMARY: AddressSanitizer: use-after-poison Appears to be accessing a "user-poison" area, so maybe a timer in something that was swept? (Wild guess.) Original issue's description: > Make canceling Timers fast. > > base::Closure recently got an IsCancelled method. Taking advantage of > that the scheduler can short circuit a bunch of logic for cancelled > tasks and avoid running them and the rest of the task selection > machinery. > > On the new TimerPerfTest benchmark this makes running 10000 cancelled > tasks aprox 50x - 60x faster (measured on Android and Linux). > > Note this patch reverts many of the changes made in > https://codereview.chromium.org/2258713004 in favor of > WeakPtr based cancellation as favored by the base owners. > > BUG=605718, 638542 > > Committed: https://crrev.com/e4e5868c5f32b015bf0d07a6eeace892d6a789a1 > Cr-Commit-Position: refs/heads/master@{#417621} TBR=jochen@chromium.org,haraken@chromium.org,skyostil@chromium.org,alexclarke@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=605718, 638542 Committed: https://crrev.com/bee7b64b4772d14c9cafc00f60629a89e8f5bf81 Cr-Commit-Position: refs/heads/master@{#417846}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+902 lines, -320 lines) Patch
M third_party/WebKit/Source/platform/Timer.h View 4 chunks +35 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/Timer.cpp View 3 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h View 8 chunks +47 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc View 19 chunks +274 lines, -87 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc View 1 chunk +6 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_perftest.cc View 3 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_unittest.cc View 1 chunk +374 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/time_domain.cc View 2 chunks +8 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/work_queue.h View 4 chunks +16 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/work_queue.cc View 6 chunks +53 lines, -33 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/work_queue_sets_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/work_queue_unittest.cc View 6 chunks +14 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/compositor_worker_scheduler.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.h View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.h View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.cc View 2 chunks +0 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/web/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/Source/web/tests/TimerPerfTest.cpp View 1 chunk +0 lines, -101 lines 0 comments Download
M third_party/WebKit/public/platform/WebTaskRunner.h View 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/public/platform/scheduler/base/task_queue.h View 1 chunk +43 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
fs
Created Revert of Make canceling Timers fast.
4 years, 3 months ago (2016-09-10 18:23:26 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2326313003/1
4 years, 3 months ago (2016-09-10 18:23:30 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-10 21:57:51 UTC) #4
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/bee7b64b4772d14c9cafc00f60629a89e8f5bf81 Cr-Commit-Position: refs/heads/master@{#417846}
4 years, 3 months ago (2016-09-10 22:00:01 UTC) #6
haraken
4 years, 3 months ago (2016-09-11 01:33:08 UTC) #7
Message was sent while issue was closed.
LGTM to revert

Powered by Google App Engine
This is Rietveld 408576698