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

Issue 1305873002: Remove 1 ms rounding up of task delays on Windows (Closed)

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

Description

Remove 1 ms rounding up of task delays on Windows Prior to a couple of attempts at fixing bug 487724 the message pump would sometimes end up spinning for up to a ms when waiting for a message's time to arrive. This was unintentional and non-obvious. The eventual fix was to round up the delay time to the next ms. Unfortunately this caused a regression in smoothness.top_25_smooth which has not been resolved (investigation was delayed due to some confusion about the results). Therefore this change reverts both fix attempts in order to leave time for a proper investigation and any necessary fixes. It is worth mentioning that the delay introduced by rounding up to 1 ms is actually worse than expected on some operating systems. On Windows 7 a call to Sleep(1) will, if the timer frequency is raised, return within a ms. On Windows 8.1 it will often take two ms to return, which increases the delay. If the timer frequency is at its default interval of 15.625 ms then the delay can be longer. BUG=487724, 497536 Committed: https://crrev.com/2b1bf190a079709a1a6a769bf86e782423d23121 Cr-Commit-Position: refs/heads/master@{#344688}

Patch Set 1 #

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

Messages

Total messages: 10 (2 generated)
brucedawson
After discussion with rschoen@, amineer@, and tinazh@ I am reverting the last couple of attempts ...
5 years, 4 months ago (2015-08-20 22:13:40 UTC) #2
rvargas (doing something else)
lgtm
5 years, 4 months ago (2015-08-20 22:31:15 UTC) #3
brucedawson
Moving this from the description: It was confirmed that this change completely undoes the previous ...
5 years, 4 months ago (2015-08-20 22:44:38 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1305873002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1305873002/1
5 years, 4 months ago (2015-08-20 22:47:56 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 4 months ago (2015-08-21 05:42:38 UTC) #7
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/2b1bf190a079709a1a6a769bf86e782423d23121 Cr-Commit-Position: refs/heads/master@{#344688}
5 years, 4 months ago (2015-08-21 05:43:27 UTC) #8
pfeldman
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/1304293002/ by pfeldman@chromium.org. ...
5 years, 4 months ago (2015-08-21 17:09:23 UTC) #9
brucedawson
5 years, 4 months ago (2015-08-21 18:48:25 UTC) #10
Message was sent while issue was closed.
Did revert this make any difference? It seems unlikely that my change could have
caused these failures. Let me know as I'd like to re-land the change today if
possible.

Powered by Google App Engine
This is Rietveld 408576698