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

Issue 1351753002: Mac: Ensure that Mach messages always get a reply (Closed)

Created:
5 years, 3 months ago by ccameron
Modified:
5 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: Ensure that Mach messages always get a reply It may be that not getting replies from Mach messages was causing the renderer to hang (appearing as a persistent blank white screen). In particular, we send IOSurface Register and Acquire functions with the flags MACH_SEND_MSG | MACH_RCV_MSG, but, if the browser doesn't understand the request, it never sends the message back to the renderer, so the receive part hangs forever. Add a flag containing the result of the browser's operation, and, if the renderer would not have gotten a message back (and would have hung), just crash the renderer. BUG=532149 Committed: https://crrev.com/7c766ff43c0b84fb97e2a58c3be183c3d1339f23 Cr-Commit-Position: refs/heads/master@{#349743}

Patch Set 1 #

Patch Set 2 : Fix unit tests #

Total comments: 8

Patch Set 3 : Incorporate review feedback #

Total comments: 4

Patch Set 4 : Incorporate review feedback #

Total comments: 5

Patch Set 5 : Incorporate review feedback #

Patch Set 6 : IRF #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -28 lines) Patch
M content/browser/browser_io_surface_manager_mac.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/browser_io_surface_manager_mac.cc View 1 2 3 4 5 chunks +26 lines, -24 lines 0 comments Download
M content/browser/browser_io_surface_manager_mac_unittest.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M content/child/child_io_surface_manager_mac.cc View 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/mac/io_surface_manager_messages.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
ccameron
For now I have a CHECK (because the previous behavior was hanging the thread & ...
5 years, 3 months ago (2015-09-16 23:51:28 UTC) #2
reveman
https://codereview.chromium.org/1351753002/diff/20001/content/browser/browser_io_surface_manager_mac.cc File content/browser/browser_io_surface_manager_mac.cc (right): https://codereview.chromium.org/1351753002/diff/20001/content/browser/browser_io_surface_manager_mac.cc#newcode241 content/browser/browser_io_surface_manager_mac.cc:241: return; don't we have to set some of the ...
5 years, 3 months ago (2015-09-17 03:58:22 UTC) #3
Avi (use Gerrit)
I'll leave David as an area expert, but I'm OK with this. LGTM, tho you'll ...
5 years, 3 months ago (2015-09-17 15:12:31 UTC) #4
ccameron
Thanks -- updated. https://codereview.chromium.org/1351753002/diff/20001/content/browser/browser_io_surface_manager_mac.cc File content/browser/browser_io_surface_manager_mac.cc (right): https://codereview.chromium.org/1351753002/diff/20001/content/browser/browser_io_surface_manager_mac.cc#newcode207 content/browser/browser_io_surface_manager_mac.cc:207: NULL); On 2015/09/17 15:12:30, Avi wrote: ...
5 years, 3 months ago (2015-09-17 18:35:05 UTC) #5
reveman
https://codereview.chromium.org/1351753002/diff/40001/content/browser/browser_io_surface_manager_mac.cc File content/browser/browser_io_surface_manager_mac.cc (right): https://codereview.chromium.org/1351753002/diff/40001/content/browser/browser_io_surface_manager_mac.cc#newcode240 content/browser/browser_io_surface_manager_mac.cc:240: reply->result = false; You'll need to set reply->header.msgh_bits/msgh_remote_port/msgh_size here ...
5 years, 3 months ago (2015-09-17 18:58:17 UTC) #6
ccameron
Thanks -- updated! https://codereview.chromium.org/1351753002/diff/40001/content/browser/browser_io_surface_manager_mac.cc File content/browser/browser_io_surface_manager_mac.cc (right): https://codereview.chromium.org/1351753002/diff/40001/content/browser/browser_io_surface_manager_mac.cc#newcode240 content/browser/browser_io_surface_manager_mac.cc:240: reply->result = false; On 2015/09/17 18:58:16, ...
5 years, 3 months ago (2015-09-18 18:06:13 UTC) #7
reveman
lgtm with nit and minor request https://codereview.chromium.org/1351753002/diff/60001/content/browser/browser_io_surface_manager_mac.cc File content/browser/browser_io_surface_manager_mac.cc (right): https://codereview.chromium.org/1351753002/diff/60001/content/browser/browser_io_surface_manager_mac.cc#newcode282 content/browser/browser_io_surface_manager_mac.cc:282: reply->result = false; ...
5 years, 3 months ago (2015-09-18 18:22:31 UTC) #8
ccameron
Thanks! https://codereview.chromium.org/1351753002/diff/60001/content/browser/browser_io_surface_manager_mac.cc File content/browser/browser_io_surface_manager_mac.cc (right): https://codereview.chromium.org/1351753002/diff/60001/content/browser/browser_io_surface_manager_mac.cc#newcode282 content/browser/browser_io_surface_manager_mac.cc:282: reply->result = false; On 2015/09/18 18:22:30, reveman wrote: ...
5 years, 3 months ago (2015-09-18 18:36:01 UTC) #9
reveman
https://codereview.chromium.org/1351753002/diff/60001/content/browser/browser_io_surface_manager_mac.cc File content/browser/browser_io_surface_manager_mac.cc (right): https://codereview.chromium.org/1351753002/diff/60001/content/browser/browser_io_surface_manager_mac.cc#newcode282 content/browser/browser_io_surface_manager_mac.cc:282: reply->result = false; On 2015/09/18 at 18:36:00, ccameron wrote: ...
5 years, 3 months ago (2015-09-18 18:47:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1351753002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1351753002/100001
5 years, 3 months ago (2015-09-18 19:37:54 UTC) #13
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 3 months ago (2015-09-18 19:43:24 UTC) #14
commit-bot: I haz the power
5 years, 3 months ago (2015-09-18 19:44:01 UTC) #15
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/7c766ff43c0b84fb97e2a58c3be183c3d1339f23
Cr-Commit-Position: refs/heads/master@{#349743}

Powered by Google App Engine
This is Rietveld 408576698