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

Issue 1414503009: IPC: Remove unnecessary conversions of BrokerableAttachment. (Closed)

Created:
5 years, 1 month ago by erikchen
Modified:
5 years, 1 month ago
Reviewers:
Tom Sepez
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

IPC: Remove unnecessary conversions of BrokerableAttachment. BrokerableAttachments are typically stored and passed around in a scoped_refptr. There were several locations where they were being unnecessarily converted to a raw pointer. This was probably responsible for a non-deterministic crash on GPU bots (https://code.google.com/p/chromium/issues/detail?id=535711#c28), although I haven't been able to reproduce the problem locally. BUG=535711 Committed: https://crrev.com/a03dde6fdcd0308e897995bf2c6d00615bcda3ef Cr-Commit-Position: refs/heads/master@{#356968}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : Comments from tsepez. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -47 lines) Patch
M ipc/attachment_broker.h View 2 chunks +4 lines, -2 lines 0 comments Download
M ipc/attachment_broker_mac_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M ipc/attachment_broker_privileged_mac.h View 1 chunk +3 lines, -2 lines 0 comments Download
M ipc/attachment_broker_privileged_mac.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/attachment_broker_privileged_win.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M ipc/attachment_broker_privileged_win.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/attachment_broker_privileged_win_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M ipc/attachment_broker_unprivileged_mac.h View 1 chunk +3 lines, -2 lines 0 comments Download
M ipc/attachment_broker_unprivileged_mac.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/attachment_broker_unprivileged_win.h View 1 chunk +3 lines, -2 lines 0 comments Download
M ipc/attachment_broker_unprivileged_win.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/ipc_channel_posix.cc View 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_channel_reader.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ipc/ipc_channel_reader_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M ipc/ipc_channel_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_message.cc View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M ipc/ipc_message_attachment_set.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M ipc/ipc_message_attachment_set.cc View 1 2 3 4 1 chunk +5 lines, -13 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414503009/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414503009/1
5 years, 1 month ago (2015-10-29 00:55:08 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414503009/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414503009/20001
5 years, 1 month ago (2015-10-29 01:07:31 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/71497)
5 years, 1 month ago (2015-10-29 01:55:28 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414503009/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414503009/20001
5 years, 1 month ago (2015-10-29 03:46:51 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-10-29 04:22:11 UTC) #10
erikchen
tsepez: Please review. I was not able to pinpoint an exact error. GetBrokerableAttachments() seemed the ...
5 years, 1 month ago (2015-10-29 18:40:54 UTC) #13
Tom Sepez
Apart from the places I've marked, I think you can flip the ohters back to ...
5 years, 1 month ago (2015-10-29 19:12:51 UTC) #14
erikchen
tsepez: PTAL. I'm aware that passing a const scoped_refptr& does not change lifetime semantics from ...
5 years, 1 month ago (2015-10-29 19:53:47 UTC) #15
erikchen
https://codereview.chromium.org/1414503009/diff/60001/ipc/ipc_channel_reader.cc File ipc/ipc_channel_reader.cc (right): https://codereview.chromium.org/1414503009/diff/60001/ipc/ipc_channel_reader.cc#newcode253 ipc/ipc_channel_reader.cc:253: std::vector<scoped_refptr<IPC::BrokerableAttachment>> On 2015/10/29 19:12:51, Tom Sepez wrote: > Note: ...
5 years, 1 month ago (2015-10-29 19:53:54 UTC) #16
Tom Sepez
lgtm
5 years, 1 month ago (2015-10-29 21:26:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1414503009/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1414503009/80001
5 years, 1 month ago (2015-10-29 21:27:53 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 1 month ago (2015-10-29 22:37:12 UTC) #20
commit-bot: I haz the power
5 years, 1 month ago (2015-10-29 22:37:53 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a03dde6fdcd0308e897995bf2c6d00615bcda3ef
Cr-Commit-Position: refs/heads/master@{#356968}

Powered by Google App Engine
This is Rietveld 408576698