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

Issue 2002743002: Timing issue in IncomingTaskQueue::AddToIncomingQueue (Closed)

Created:
4 years, 7 months ago by stanisc
Modified:
4 years, 7 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Timing issue in IncomingTaskQueue::AddToIncomingQueue This fix minimizes an extra delay in calculated task's delayed runtime in case of lock contention and the current thread switching out. A better solution would be to pass "now" from outside but that would be a much larger code change. The fix should also reduce chances of lock contention in this code a tiny bit by reducing the lock scope. I've done a number of runs of smoothness benchmark before and after the fix and it seems there is a very small improvement in "queuing durations" and "percentage smooth" metrics. BUG=613399 Committed: https://crrev.com/94ab140542d6f2c2b72d33b6f5c0935dd34af003 Cr-Commit-Position: refs/heads/master@{#395393}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M base/message_loop/incoming_task_queue.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (9 generated)
stanisc
PTAL!
4 years, 7 months ago (2016-05-20 22:59:51 UTC) #7
Mark Mentovai
LGTM
4 years, 7 months ago (2016-05-23 17:54:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2002743002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2002743002/1
4 years, 7 months ago (2016-05-23 18:12:42 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-23 19:56:37 UTC) #12
commit-bot: I haz the power
4 years, 7 months ago (2016-05-23 19:58:32 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/94ab140542d6f2c2b72d33b6f5c0935dd34af003
Cr-Commit-Position: refs/heads/master@{#395393}

Powered by Google App Engine
This is Rietveld 408576698