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

Issue 1137453006: Treat a delay of under 1 millisecond in MessagePumpDefault as a signal that the corresponding delay… (Closed)

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

Description

Treat a delay of under 1 millisecond in MessagePumpDefault as a signal that the corresponding delayed task needs to execute On Windows for e.g. the lowest resolution we can get on the system clock is 1 ms or 4 ms depending on whether the machine is powered by AC or battery. The OS default is 15ms. So that effectively means that if a delayed task is waiting to execute for a delay of under 1 ms would cause the underlying OS WaitForSingleObject call to return immediately effectively spinning a tight loop with a kernel mode context switch. Fix is to treat a delay of under 1 ms as a signal that the task is ready to execute for all platforms. BUG=487724 Committed: https://crrev.com/990d0c7d24a7ef39567875587355637dc9fef122 Cr-Commit-Position: refs/heads/master@{#329997}

Patch Set 1 #

Patch Set 2 : Fix build error #

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

Messages

Total messages: 12 (5 generated)
ananta
5 years, 7 months ago (2015-05-14 01:15:33 UTC) #2
cpu_(ooo_6.6-7.5)
lgtm
5 years, 7 months ago (2015-05-15 00:35:45 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1137453006/20001
5 years, 7 months ago (2015-05-15 00:37:57 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-05-15 00:42:49 UTC) #8
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/990d0c7d24a7ef39567875587355637dc9fef122 Cr-Commit-Position: refs/heads/master@{#329997}
5 years, 7 months ago (2015-05-15 00:43:51 UTC) #9
jar (doing other things)
drive by commentary (since I'm not really workin' on Chrome these days) FWIW: This appears ...
5 years, 7 months ago (2015-05-15 16:49:02 UTC) #11
cpu_(ooo_6.6-7.5)
5 years, 5 months ago (2015-07-22 05:11:50 UTC) #12
Message was sent while issue was closed.
for the record, there is this regression. Which might or might not be related.

https://code.google.com/p/chromium/issues/detail?id=509055

Powered by Google App Engine
This is Rietveld 408576698