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

Issue 2754083003: Mojo EDK: Circulate MojoArmWatcher outputs to avoid starvation (Closed)

Created:
3 years, 9 months ago by Ken Rockot(use gerrit already)
Modified:
3 years, 9 months ago
Reviewers:
yzshen1
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo EDK: Circulate MojoArmWatcher outputs to avoid starvation Changes the implementation of MojoArmWatcher slightly so that the set of ready handles is circulated across consecutive calls, avoiding potential handle starvation by callers requesting a small fixed number of outputs each time. Also correctly iterates over only the ready handles in WatcherDispatcher::Arm(), rather than less efficiently iterating over all watched handles. (Ooops!) BUG=700171 R=yzshen@chromium.org Review-Url: https://codereview.chromium.org/2754083003 Cr-Commit-Position: refs/heads/master@{#457557} Committed: https://chromium.googlesource.com/chromium/src/+/9d95f9e5de8e1e95beaaead0bbaad3fbfdc84e15

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : . #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -17 lines) Patch
M mojo/edk/system/watcher_dispatcher.h View 1 2 2 chunks +11 lines, -1 line 0 comments Download
M mojo/edk/system/watcher_dispatcher.cc View 1 2 2 chunks +27 lines, -14 lines 2 comments Download
M mojo/edk/system/watcher_unittest.cc View 1 2 chunks +47 lines, -0 lines 0 comments Download
M mojo/public/c/system/watcher.h View 1 chunk +3 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (11 generated)
Ken Rockot(use gerrit already)
3 years, 9 months ago (2017-03-16 18:26:02 UTC) #5
yzshen1
https://codereview.chromium.org/2754083003/diff/20001/mojo/edk/system/watcher_dispatcher.cc File mojo/edk/system/watcher_dispatcher.cc (right): https://codereview.chromium.org/2754083003/diff/20001/mojo/edk/system/watcher_dispatcher.cc#newcode228 mojo/edk/system/watcher_dispatcher.cc:228: if (!watch->ready()) [A question to help my own understanding] ...
3 years, 9 months ago (2017-03-16 18:59:01 UTC) #6
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2754083003/diff/20001/mojo/edk/system/watcher_dispatcher.cc File mojo/edk/system/watcher_dispatcher.cc (right): https://codereview.chromium.org/2754083003/diff/20001/mojo/edk/system/watcher_dispatcher.cc#newcode228 mojo/edk/system/watcher_dispatcher.cc:228: if (!watch->ready()) On 2017/03/16 at 18:59:01, yzshen1 wrote: > ...
3 years, 9 months ago (2017-03-16 19:21:11 UTC) #9
yzshen1
LGTM with one nit. Thanks! https://codereview.chromium.org/2754083003/diff/40001/mojo/edk/system/watcher_dispatcher.cc File mojo/edk/system/watcher_dispatcher.cc (right): https://codereview.chromium.org/2754083003/diff/40001/mojo/edk/system/watcher_dispatcher.cc#newcode219 mojo/edk/system/watcher_dispatcher.cc:219: last_watch_to_block_arming_ = watch; nit: ...
3 years, 9 months ago (2017-03-16 21:06:17 UTC) #12
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2754083003/diff/40001/mojo/edk/system/watcher_dispatcher.cc File mojo/edk/system/watcher_dispatcher.cc (right): https://codereview.chromium.org/2754083003/diff/40001/mojo/edk/system/watcher_dispatcher.cc#newcode219 mojo/edk/system/watcher_dispatcher.cc:219: last_watch_to_block_arming_ = watch; On 2017/03/16 at 21:06:17, yzshen1 wrote: ...
3 years, 9 months ago (2017-03-16 21:17:35 UTC) #13
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/2754083003/40001
3 years, 9 months ago (2017-03-16 21:18:37 UTC) #15
yzshen1
On 2017/03/16 21:17:35, Ken Rockot wrote: > https://codereview.chromium.org/2754083003/diff/40001/mojo/edk/system/watcher_dispatcher.cc > File mojo/edk/system/watcher_dispatcher.cc (right): > > https://codereview.chromium.org/2754083003/diff/40001/mojo/edk/system/watcher_dispatcher.cc#newcode219 ...
3 years, 9 months ago (2017-03-16 21:21:35 UTC) #16
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 21:24:34 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/9d95f9e5de8e1e95beaaead0bbaa...

Powered by Google App Engine
This is Rietveld 408576698