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

Issue 1403773005: Ensure that DataPipeProducerDispatcher::CreateEquivalentDispatcherAndCloseImplNoLock serializes the… (Closed)

Created:
5 years, 2 months ago by jam
Modified:
5 years, 2 months ago
Reviewers:
yzshen1
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

Ensure that DataPipeProducerDispatcher::CreateEquivalentDispatcherAndCloseImplNoLock serializes the object. Otherwise the channel_ is only serialized later in EndSerializeAndCloseImplNoLock. In between those two calls, if the consumer is closed the channel_ can call the old and destructed DataPipeProducerDispatcher. BUG=478251 Committed: https://crrev.com/c382820df017db1bc9d53ac1d745d4e688d94efd Cr-Commit-Position: refs/heads/master@{#353914}

Patch Set 1 #

Patch Set 2 : add test #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -12 lines) Patch
M mojo/edk/system/data_pipe_producer_dispatcher.h View 2 chunks +4 lines, -0 lines 0 comments Download
M mojo/edk/system/data_pipe_producer_dispatcher.cc View 4 chunks +21 lines, -11 lines 0 comments Download
M mojo/edk/system/data_pipe_unittest.cc View 1 2 3 2 chunks +81 lines, -1 line 0 comments Download

Messages

Total messages: 18 (8 generated)
jam
This is hard to test because it's a race condition. However it does come up ...
5 years, 2 months ago (2015-10-13 15:00:34 UTC) #2
yzshen1
lgtm https://codereview.chromium.org/1403773005/diff/20001/mojo/edk/system/data_pipe_unittest.cc File mojo/edk/system/data_pipe_unittest.cc (right): https://codereview.chromium.org/1403773005/diff/20001/mojo/edk/system/data_pipe_unittest.cc#newcode16 mojo/edk/system/data_pipe_unittest.cc:16: #include "mojo/public/c/system/core.h" nit: I think if we include ...
5 years, 2 months ago (2015-10-13 16:17:41 UTC) #3
jam
https://codereview.chromium.org/1403773005/diff/20001/mojo/edk/system/data_pipe_unittest.cc File mojo/edk/system/data_pipe_unittest.cc (right): https://codereview.chromium.org/1403773005/diff/20001/mojo/edk/system/data_pipe_unittest.cc#newcode16 mojo/edk/system/data_pipe_unittest.cc:16: #include "mojo/public/c/system/core.h" On 2015/10/13 16:17:41, yzshen1 wrote: > nit: ...
5 years, 2 months ago (2015-10-13 16:34:06 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403773005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403773005/40001
5 years, 2 months ago (2015-10-13 16:38:04 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/130983) android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 2 months ago (2015-10-13 16:46:00 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403773005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403773005/60001
5 years, 2 months ago (2015-10-13 19:19:42 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/81415)
5 years, 2 months ago (2015-10-13 22:28:41 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403773005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403773005/60001
5 years, 2 months ago (2015-10-13 22:39:26 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-10-14 00:00:34 UTC) #17
commit-bot: I haz the power
5 years, 2 months ago (2015-10-14 00:01:16 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c382820df017db1bc9d53ac1d745d4e688d94efd
Cr-Commit-Position: refs/heads/master@{#353914}

Powered by Google App Engine
This is Rietveld 408576698