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

Issue 2209733002: [mojo-edk] Prevent AcceptIncomingMessages flushing aggressively (Closed)

Created:
4 years, 4 months ago by Ken Rockot(use gerrit already)
Modified:
4 years, 4 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@2785
Target Ref:
refs/pending/branch-heads/2785
Project:
chromium
Visibility:
Public.

Description

[mojo-edk] Prevent AcceptIncomingMessages flushing aggressively Changes AcceptIncomingMessages to only flush the incoming message queue once synchronously. This prevents deadlock cycles that can block incoming external messages by spinning the IO thread indefinitely. It also prevents similar cycles from chewing up CPU on other threads. Also fixes some Watcher tests that are broken by ProcessIncomingMessages behavior. This change made the brokenness more apparent. BUG=628492 R=amistry@chromium.org Review-Url: https://codereview.chromium.org/2153733002 Cr-Commit-Position: refs/heads/master@{#405776} TBR=yzshen@chromium.org

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -32 lines) Patch
M mojo/edk/system/node_controller.h View 1 chunk +0 lines, -2 lines 0 comments Download
M mojo/edk/system/node_controller.cc View 2 chunks +14 lines, -22 lines 0 comments Download
M mojo/edk/system/watch_unittest.cc View 8 chunks +23 lines, -8 lines 0 comments Download

Messages

Total messages: 1 (1 generated)
Ken Rockot(use gerrit already)
4 years, 4 months ago (2016-08-03 16:10:33 UTC) #1
Description was changed from

==========
[mojo-edk] Prevent AcceptIncomingMessages flushing aggressively

Changes AcceptIncomingMessages to only flush the incoming
message queue once synchronously. This prevents deadlock cycles
that can block incoming external messages by spinning the IO
thread indefinitely. It also prevents similar cycles from
chewing up CPU on other threads.

Also fixes some Watcher tests that are broken by
ProcessIncomingMessages behavior. This change made the
brokenness more apparent.

BUG=628492
R=amistry@chromium.org

Review-Url: https://codereview.chromium.org/2153733002
Cr-Commit-Position: refs/heads/master@{#405776}
==========

to

==========
[mojo-edk] Prevent AcceptIncomingMessages flushing aggressively

Changes AcceptIncomingMessages to only flush the incoming
message queue once synchronously. This prevents deadlock cycles
that can block incoming external messages by spinning the IO
thread indefinitely. It also prevents similar cycles from
chewing up CPU on other threads.

Also fixes some Watcher tests that are broken by
ProcessIncomingMessages behavior. This change made the
brokenness more apparent.

BUG=628492
R=amistry@chromium.org

Review-Url: https://codereview.chromium.org/2153733002
Cr-Commit-Position: refs/heads/master@{#405776}

TBR=yzshen@chromium.org
==========

Powered by Google App Engine
This is Rietveld 408576698