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

Issue 234253002: DCHECK that listener thread != IO thread (Closed)

Created:
6 years, 8 months ago by dmichael (off chromium)
Modified:
6 years, 8 months ago
Reviewers:
jam
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

DCHECK that listener thread != IO thread This came up in code review, where somebody was creating a SyncChannel on the IO thread. That will easily lead to deadlocks. For ChannelProxy, it seems OK to have them be the same thread so long as there is no Listener. We apparently already do this in one place: https://code.google.com/p/chromium/codesearch#chromium/src/components/nacl/browser/nacl_process_host.cc&l=866 BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264424

Patch Set 1 #

Patch Set 2 : Clean up for possible commit #

Patch Set 3 : add DCHECK for IPC::SyncChannel #

Patch Set 4 : Stronger check in ChannelProxy #

Patch Set 5 : Back to weaker check in ChannelProxy for now. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -0 lines) Patch
M ipc/ipc_channel_proxy.cc View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M ipc/ipc_sync_channel.cc View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
dmichael (off chromium)
6 years, 8 months ago (2014-04-11 17:22:40 UTC) #1
jam
good catch. channel proxy should check this as well, ignoring if there's a listener or ...
6 years, 8 months ago (2014-04-11 18:23:51 UTC) #2
dmichael (off chromium)
What do you think about putting in this DCHECK as-is for now, to stop the ...
6 years, 8 months ago (2014-04-15 20:27:31 UTC) #3
dmichael (off chromium)
On 2014/04/15 20:27:31, dmichael wrote: > What do you think about putting in this DCHECK ...
6 years, 8 months ago (2014-04-15 20:31:11 UTC) #4
jam
On 2014/04/15 20:27:31, dmichael wrote: > What do you think about putting in this DCHECK ...
6 years, 8 months ago (2014-04-16 16:13:00 UTC) #5
dmichael (off chromium)
On 2014/04/16 16:13:00, jam wrote: > On 2014/04/15 20:27:31, dmichael wrote: > > What do ...
6 years, 8 months ago (2014-04-16 19:21:45 UTC) #6
dmichael (off chromium)
The CQ bit was checked by dmichael@chromium.org
6 years, 8 months ago (2014-04-16 23:05:45 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmichael@chromium.org/234253002/70001
6 years, 8 months ago (2014-04-16 23:06:44 UTC) #8
commit-bot: I haz the power
6 years, 8 months ago (2014-04-17 05:07:20 UTC) #9
Message was sent while issue was closed.
Change committed as 264424

Powered by Google App Engine
This is Rietveld 408576698