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

Issue 9022038: Reimplement ReceivedSyncMsgQueue::DispatchMessages (Closed)

Created:
8 years, 12 months ago by Josh Horwich
Modified:
8 years, 11 months ago
Reviewers:
jam, piman
CC:
chromium-reviews, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Reimplement ReceivedSyncMsgQueue::DispatchMessages Implementation of IPC::SyncChannel::ReceivedSyncMsgQueue::DispatchMessages that does not hold any messages in a local stack-frame's delayed_queue, which was causing me to see an inbound sync message from a plugin not dispatched while the renderer was waiting for replies from the plugin. This was causing the plugin and renderer to deadlock waiting for each other. BUG=108491 TEST=Run Pepperized O3D and observe for tab hangs TEST=Run ipc_tests unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117309

Patch Set 1 #

Patch Set 2 : Try to avoid rescanning entire queue. Added unittest #

Total comments: 8

Patch Set 3 : Better detection of modified message queues #

Patch Set 4 : Add descriptive comment to unittest #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+286 lines, -16 lines) Patch
M ipc/ipc_sync_channel.cc View 1 2 5 chunks +28 lines, -16 lines 0 comments Download
M ipc/ipc_sync_channel_unittest.cc View 1 2 3 1 chunk +258 lines, -0 lines 1 comment Download

Messages

Total messages: 14 (0 generated)
Josh Horwich
Please take a look
8 years, 11 months ago (2012-01-03 18:54:27 UTC) #1
piman
It looks correct to me. Adding John, who is an OWNER and may have some ...
8 years, 11 months ago (2012-01-03 19:15:06 UTC) #2
jam
rubberstamp lgtm, i defer to piman since he's more familiar with the restrict_dispatch mode. looking ...
8 years, 11 months ago (2012-01-03 22:33:36 UTC) #3
Josh Horwich
On 2012/01/03 19:15:06, piman wrote: > It looks correct to me. Adding John, who is ...
8 years, 11 months ago (2012-01-05 17:36:04 UTC) #4
Josh Horwich
Please take a look - updated to include a unittest, also a candidate implementation on ...
8 years, 11 months ago (2012-01-07 01:23:22 UTC) #5
piman
http://codereview.chromium.org/9022038/diff/5001/ipc/ipc_sync_channel.cc File ipc/ipc_sync_channel.cc (right): http://codereview.chromium.org/9022038/diff/5001/ipc/ipc_sync_channel.cc#newcode103 ipc/ipc_sync_channel.cc:103: message_queue_modified_ = false; In case of nested dispatches, I'm ...
8 years, 11 months ago (2012-01-10 04:33:17 UTC) #6
Josh Horwich
Please take a look. Comment in the unittest expanded. Implementation should account for changes to ...
8 years, 11 months ago (2012-01-10 20:30:25 UTC) #7
piman
LGTM+nit, thanks. http://codereview.chromium.org/9022038/diff/14001/ipc/ipc_sync_channel_unittest.cc File ipc/ipc_sync_channel_unittest.cc (right): http://codereview.chromium.org/9022038/diff/14001/ipc/ipc_sync_channel_unittest.cc#newcode1345 ipc/ipc_sync_channel_unittest.cc:1345: // delayed_queue. Specifically, we start with client1 ...
8 years, 11 months ago (2012-01-10 20:52:13 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jhorwich@chromium.org/9022038/14001
8 years, 11 months ago (2012-01-11 02:00:06 UTC) #9
commit-bot: I haz the power
Try job failure for 9022038-14001 (retry) on linux_rel for step "browser_tests". It's a second try, ...
8 years, 11 months ago (2012-01-11 03:21:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jhorwich@chromium.org/9022038/14001
8 years, 11 months ago (2012-01-11 18:54:20 UTC) #11
commit-bot: I haz the power
Try job failure for 9022038-14001 (retry) on win_rel for step "update". It's a second try, ...
8 years, 11 months ago (2012-01-11 20:49:33 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jhorwich@chromium.org/9022038/14001
8 years, 11 months ago (2012-01-11 21:28:47 UTC) #13
commit-bot: I haz the power
8 years, 11 months ago (2012-01-11 22:39:56 UTC) #14
Change committed as 117309

Powered by Google App Engine
This is Rietveld 408576698