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

Issue 2259363002: Mojo EDK: Add tests to exercise races in handle transit (Closed)

Created:
4 years, 4 months ago by Ken Rockot(use gerrit already)
Modified:
4 years, 4 months ago
Reviewers:
yzshen1
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo EDK: Add tests to exercise races in handle transit Data pipe producer handles may change status while in transit and the receiving end may never be notified of this change unless they call MojoWait on the handle. This fixes that, and adds test coverage to verify that the problem does not exist and does not regress for data pipe consumers (fixed by http://crrev.com/411707) or message pipe handles (don't currently have this problem) either. BUG=639363 R=yzshen@chromium.org Committed: https://crrev.com/7cd99cc18b960e7d59109f16c53cad49ac09e7c4 Cr-Commit-Position: refs/heads/master@{#413356}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -0 lines) Patch
M mojo/edk/system/data_pipe_producer_dispatcher.cc View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/edk/system/data_pipe_unittest.cc View 3 chunks +86 lines, -0 lines 0 comments Download
M mojo/edk/system/multiprocess_message_pipe_unittest.cc View 1 2 3 chunks +61 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (16 generated)
Ken Rockot(use gerrit already)
Please take a look, thanks!
4 years, 4 months ago (2016-08-19 20:10:51 UTC) #4
Ken Rockot(use gerrit already)
FWIW I was able to repro the same bug yhirano fixed for data pipe consumers, ...
4 years, 4 months ago (2016-08-19 20:12:00 UTC) #5
yzshen1
LGTM https://codereview.chromium.org/2259363002/diff/20001/mojo/edk/system/multiprocess_message_pipe_unittest.cc File mojo/edk/system/multiprocess_message_pipe_unittest.cc (right): https://codereview.chromium.org/2259363002/diff/20001/mojo/edk/system/multiprocess_message_pipe_unittest.cc#newcode1306 mojo/edk/system/multiprocess_message_pipe_unittest.cc:1306: MojoHandle b = handles[0]; optional, nit: it seems ...
4 years, 4 months ago (2016-08-19 22:20:05 UTC) #10
yzshen1
LGTM
4 years, 4 months ago (2016-08-19 22:20:05 UTC) #11
Ken Rockot(use gerrit already)
Thanks! https://codereview.chromium.org/2259363002/diff/20001/mojo/edk/system/multiprocess_message_pipe_unittest.cc File mojo/edk/system/multiprocess_message_pipe_unittest.cc (right): https://codereview.chromium.org/2259363002/diff/20001/mojo/edk/system/multiprocess_message_pipe_unittest.cc#newcode1306 mojo/edk/system/multiprocess_message_pipe_unittest.cc:1306: MojoHandle b = handles[0]; On 2016/08/19 at 22:20:05, ...
4 years, 4 months ago (2016-08-19 22:28:00 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2259363002/40001
4 years, 4 months ago (2016-08-19 22:28:29 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/126234)
4 years, 4 months ago (2016-08-20 00:29:17 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2259363002/40001
4 years, 4 months ago (2016-08-20 00:41:14 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/126321)
4 years, 4 months ago (2016-08-20 03:06:54 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2259363002/40001
4 years, 4 months ago (2016-08-20 06:45:02 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/126485)
4 years, 4 months ago (2016-08-20 07:28:02 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2259363002/40001
4 years, 4 months ago (2016-08-20 22:55:44 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-21 00:28:00 UTC) #28
commit-bot: I haz the power
4 years, 4 months ago (2016-08-21 00:30:31 UTC) #30
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7cd99cc18b960e7d59109f16c53cad49ac09e7c4
Cr-Commit-Position: refs/heads/master@{#413356}

Powered by Google App Engine
This is Rietveld 408576698