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

Issue 1023043002: ChannelMojo: Let MessagePipeReader wait "peer closed" signal as well. (Closed)

Created:
5 years, 9 months ago by Hajime Morrita
Modified:
5 years, 9 months ago
Reviewers:
viettrungluu
CC:
chromium-reviews, qsr+mojo_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

ChannelMojo: Let MessagePipeReader wait "peer closed" signal as well. This CL adds MOJO_SIGNAL_PEER_CLOSED for the MessagePipeReader's waiting bits. Without this, PRECONDITION_FAILED error can be notified at the end of the channel lifetime, and the browser process misinterprets it as a renderer crash, which results sadface screen. This rarely happens and is reproduced only with some underpowered CPU with excessive pressure. So we cannot have any reliable test. BUG=466814 R=viettrungluu@chromium.org Committed: https://crrev.com/29d88220e88d21deaf6856b7ded300fa06ab94d3 Cr-Commit-Position: refs/heads/master@{#322094}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -9 lines) Patch
M ipc/mojo/ipc_message_pipe_reader.cc View 1 2 chunks +6 lines, -9 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
Hajime Morrita
5 years, 9 months ago (2015-03-20 00:56:11 UTC) #1
Hajime Morrita
Trung: PTAL this and https://codereview.chromium.org/1021393002/ ?
5 years, 9 months ago (2015-03-23 17:21:39 UTC) #2
Hajime Morrita
Trung: Ping? This blocks ChannelMojo, and I cannot move this without this.
5 years, 9 months ago (2015-03-24 00:23:49 UTC) #3
viettrungluu
https://codereview.chromium.org/1023043002/diff/1/ipc/mojo/ipc_message_pipe_reader.cc File ipc/mojo/ipc_message_pipe_reader.cc (right): https://codereview.chromium.org/1023043002/diff/1/ipc/mojo/ipc_message_pipe_reader.cc#newcode166 ipc/mojo/ipc_message_pipe_reader.cc:166: MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_PEER_CLOSED); So if it gets signaled due ...
5 years, 9 months ago (2015-03-24 21:03:26 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1023043002/20001
5 years, 9 months ago (2015-03-24 21:13:29 UTC) #6
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 9 months ago (2015-03-24 21:13:32 UTC) #8
Hajime Morrita
Thanks for the review! PTAL at the updated CL? https://codereview.chromium.org/1023043002/diff/1/ipc/mojo/ipc_message_pipe_reader.cc File ipc/mojo/ipc_message_pipe_reader.cc (right): https://codereview.chromium.org/1023043002/diff/1/ipc/mojo/ipc_message_pipe_reader.cc#newcode171 ipc/mojo/ipc_message_pipe_reader.cc:171: ...
5 years, 9 months ago (2015-03-24 21:13:37 UTC) #9
viettrungluu
lgtm
5 years, 9 months ago (2015-03-24 21:16:08 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1023043002/20001
5 years, 9 months ago (2015-03-24 21:21:06 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-24 23:52:39 UTC) #13
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/29d88220e88d21deaf6856b7ded300fa06ab94d3 Cr-Commit-Position: refs/heads/master@{#322094}
5 years, 9 months ago (2015-03-24 23:53:41 UTC) #14
tkent
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1035633002/ by tkent@chromium.org. ...
5 years, 9 months ago (2015-03-25 04:38:37 UTC) #15
tkent
5 years, 9 months ago (2015-03-25 06:01:35 UTC) #16
Message was sent while issue was closed.
On 2015/03/25 04:38:37, tkent wrote:
> A revert of this CL (patchset #2 id:20001) has been created in
> https://codereview.chromium.org/1035633002/ by mailto:tkent@chromium.org.
> 
> The reason for reverting is: speculative revert for "Too many open files" on
> various Mac bots.
> e.g.
>
http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac10.9/builds/...
> .

The problem was not only in Mac bots.  browser_tests on Windows, Linux, and
Android, content_browsertests on Windows and Linux, etc.

Powered by Google App Engine
This is Rietveld 408576698