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

Issue 2341633005: Mojo: Fix data pipe ALL_OR_NONE write capacity check. (Closed)

Created:
4 years, 3 months ago by miu
Modified:
4 years, 3 months ago
Reviewers:
jam
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo: Fix data pipe ALL_OR_NONE write capacity check. Fixes a bug where ALL_OR_NONE writes to data pipes were checking the total capacity of the pipe, rather than the available capacity. The bug allowed ALL_OR_NONE writes to succeed (MOJO_RESULT_OK), but in actuality only a portion of the data was written. Updated unit test with a case that fails w/o the fix, but passes with the fix. Committed: https://crrev.com/6e49b250ab7a13d62426bb54c348e0a50cd7967a Cr-Commit-Position: refs/heads/master@{#418929}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -7 lines) Patch
M mojo/edk/system/data_pipe_producer_dispatcher.cc View 1 chunk +2 lines, -3 lines 2 comments Download
M mojo/edk/system/data_pipe_unittest.cc View 2 chunks +3 lines, -4 lines 1 comment Download

Messages

Total messages: 12 (7 generated)
miu
jam: PTAL. (I encountered this problem while writing code for my own project that uses ...
4 years, 3 months ago (2016-09-14 22:40:23 UTC) #4
jam
lgtm https://codereview.chromium.org/2341633005/diff/1/mojo/edk/system/data_pipe_producer_dispatcher.cc File mojo/edk/system/data_pipe_producer_dispatcher.cc (right): https://codereview.chromium.org/2341633005/diff/1/mojo/edk/system/data_pipe_producer_dispatcher.cc#newcode144 mojo/edk/system/data_pipe_producer_dispatcher.cc:144: return MOJO_RESULT_OUT_OF_RANGE; On 2016/09/14 22:40:23, miu wrote: > ...
4 years, 3 months ago (2016-09-15 17:08:34 UTC) #7
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/2341633005/1
4 years, 3 months ago (2016-09-15 18:35:43 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-15 19:08:48 UTC) #10
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 19:10:07 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/6e49b250ab7a13d62426bb54c348e0a50cd7967a
Cr-Commit-Position: refs/heads/master@{#418929}

Powered by Google App Engine
This is Rietveld 408576698