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

Issue 1475983004: Revert making HandleWatcher block until no longer waiting on pipe (r285266). (Closed)

Created:
5 years ago by jam
Modified:
5 years ago
CC:
chromium-reviews, qsr+mojo_chromium.org, vmpstr+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert making HandleWatcher block until no longer waiting on pipe (r285266). That change causes any thread that uses HandleWatcher to block and wait on the watcher thread (which uses mojo message pump). With the new EDK, this causes hangs on shutdown if we share the IO thread between chrome and the EDK, since if the destruction of HandleWatcher happens on the IO thread, the handle watcher's mojo pump will never wake up (since the IO thread is blocked, so it doesn't get to deliver the control byte read event to MojoMessagePump). Since the EDK already handles the case fine by returning error codes, no need to make threads block. BUG=394886, 561803 Committed: https://crrev.com/daeca3e623dbefaa485889eff9f7712e0f572d51 Cr-Commit-Position: refs/heads/master@{#362190}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix android and review comment #

Patch Set 3 : update comment (undo change in r283888 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -74 lines) Patch
M base/threading/thread_restrictions.h View 2 chunks +0 lines, -6 lines 0 comments Download
M mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java View 1 3 chunks +53 lines, -3 lines 0 comments Download
M mojo/message_pump/handle_watcher.h View 2 chunks +1 line, -3 lines 0 comments Download
M mojo/message_pump/handle_watcher.cc View 9 chunks +9 lines, -20 lines 0 comments Download
M mojo/message_pump/message_pump_mojo.cc View 2 chunks +3 lines, -1 line 0 comments Download
M mojo/public/c/environment/async_waiter.h View 1 2 1 chunk +6 lines, -41 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
jam
5 years ago (2015-11-26 01:24:35 UTC) #3
sky
What happens if there is a waitmany in progress and one closes or transfers the ...
5 years ago (2015-11-26 01:48:51 UTC) #4
jam
On 2015/11/26 01:48:51, sky wrote: > What happens if there is a waitmany in progress ...
5 years ago (2015-11-26 02:13:40 UTC) #5
Anand Mistry (off Chromium)
Sorry for the drive-by. https://codereview.chromium.org/1475983004/diff/1/mojo/message_pump/handle_watcher_unittest.cc File mojo/message_pump/handle_watcher_unittest.cc (left): https://codereview.chromium.org/1475983004/diff/1/mojo/message_pump/handle_watcher_unittest.cc#oldcode443 mojo/message_pump/handle_watcher_unittest.cc:443: TEST(HandleWatcherCleanEnvironmentTest, StressTest) { Can you ...
5 years ago (2015-11-26 02:49:05 UTC) #7
jam
https://codereview.chromium.org/1475983004/diff/1/mojo/message_pump/handle_watcher_unittest.cc File mojo/message_pump/handle_watcher_unittest.cc (left): https://codereview.chromium.org/1475983004/diff/1/mojo/message_pump/handle_watcher_unittest.cc#oldcode443 mojo/message_pump/handle_watcher_unittest.cc:443: TEST(HandleWatcherCleanEnvironmentTest, StressTest) { On 2015/11/26 02:49:04, Anand Mistry wrote: ...
5 years ago (2015-11-26 03:32:02 UTC) #8
sky
Update the doc of mojo/public/c/environment/async_waiter.h and LGTM
5 years ago (2015-11-30 16:10:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1475983004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1475983004/40001
5 years ago (2015-11-30 16:38:43 UTC) #12
jam
On 2015/11/30 16:10:09, sky wrote: > Update the doc of mojo/public/c/environment/async_waiter.h and LGTM Done, thanks ...
5 years ago (2015-11-30 16:43:13 UTC) #13
jam
On 2015/11/30 16:10:09, sky wrote: > Update the doc of mojo/public/c/environment/async_waiter.h and LGTM Done, thanks ...
5 years ago (2015-11-30 16:43:14 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-11-30 19:25:15 UTC) #16
commit-bot: I haz the power
5 years ago (2015-11-30 19:26:23 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/daeca3e623dbefaa485889eff9f7712e0f572d51
Cr-Commit-Position: refs/heads/master@{#362190}

Powered by Google App Engine
This is Rietveld 408576698