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

Issue 2466993004: Remove use of std::function from Mojo internals (Closed)

Created:
4 years, 1 month ago by Ken Rockot(use gerrit already)
Modified:
4 years, 1 month 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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove use of std::function from Mojo internals Introduces a ports::MessageFilter type for filtering messages on a port's queue. This should be slightly more efficient since it avoids a heap allocation, and it should lead to more useful stack traces in certain crash reports. BUG=609030 R=yzshen@chromium.org Committed: https://crrev.com/03e91a8a23d50943760df3c84a5439fbbc2c0e59 Cr-Commit-Position: refs/heads/master@{#429524}

Patch Set 1 #

Total comments: 4

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -89 lines) Patch
M mojo/edk/system/data_pipe_consumer_dispatcher.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/edk/system/data_pipe_producer_dispatcher.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/edk/system/message_pipe_dispatcher.cc View 1 4 chunks +104 lines, -51 lines 0 comments Download
M mojo/edk/system/ports/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A mojo/edk/system/ports/message_filter.h View 1 chunk +29 lines, -0 lines 0 comments Download
M mojo/edk/system/ports/message_queue.h View 2 chunks +5 lines, -3 lines 0 comments Download
M mojo/edk/system/ports/message_queue.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M mojo/edk/system/ports/node.h View 2 chunks +10 lines, -9 lines 0 comments Download
M mojo/edk/system/ports/node.cc View 4 chunks +7 lines, -11 lines 0 comments Download
M mojo/edk/system/ports/ports_unittest.cc View 5 chunks +9 lines, -7 lines 0 comments Download

Messages

Total messages: 21 (13 generated)
Ken Rockot(use gerrit already)
Please take a look. Thanks!
4 years, 1 month ago (2016-11-02 21:06:32 UTC) #4
yzshen1
LGTM https://codereview.chromium.org/2466993004/diff/1/mojo/edk/system/message_pipe_dispatcher.cc File mojo/edk/system/message_pipe_dispatcher.cc (right): https://codereview.chromium.org/2466993004/diff/1/mojo/edk/system/message_pipe_dispatcher.cc#newcode130 mojo/edk/system/message_pipe_dispatcher.cc:130: bool* invalid_message_; nit: now that the other pointers ...
4 years, 1 month ago (2016-11-03 00:11:27 UTC) #7
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2466993004/diff/1/mojo/edk/system/message_pipe_dispatcher.cc File mojo/edk/system/message_pipe_dispatcher.cc (right): https://codereview.chromium.org/2466993004/diff/1/mojo/edk/system/message_pipe_dispatcher.cc#newcode130 mojo/edk/system/message_pipe_dispatcher.cc:130: bool* invalid_message_; On 2016/11/03 at 00:11:27, yzshen1 wrote: > ...
4 years, 1 month ago (2016-11-03 01:25:08 UTC) #10
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/2466993004/20001
4 years, 1 month ago (2016-11-03 01:25:59 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/309943)
4 years, 1 month ago (2016-11-03 03:01:21 UTC) #16
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/2466993004/20001
4 years, 1 month ago (2016-11-03 03:46:53 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-03 04:24:33 UTC) #19
commit-bot: I haz the power
4 years, 1 month ago (2016-11-03 04:27:07 UTC) #21
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/03e91a8a23d50943760df3c84a5439fbbc2c0e59
Cr-Commit-Position: refs/heads/master@{#429524}

Powered by Google App Engine
This is Rietveld 408576698