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

Issue 1467953002: Implement MessagePumpMojo using WaitSet. (Closed)

Created:
5 years, 1 month ago by Anand Mistry (off Chromium)
Modified:
4 years, 11 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chrome-apps-syd-reviews_chromium.org, 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@mojo-waitset-implementation
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement MessagePumpMojo using WaitSet. By using a wait set instead of WaitMany(), the message pump no longer needs to do O(n) iterations over every waiting handle on every iteration. BUG=556865 Committed: https://crrev.com/6aebd413af88c78068be89cf174a2eafe5af3fe0 Cr-Commit-Position: refs/heads/master@{#367716}

Patch Set 1 #

Patch Set 2 : Review reade. #

Total comments: 2

Patch Set 3 : Rebase. #

Total comments: 13

Patch Set 4 : Address review comments. #

Patch Set 5 : Fix component builds. #

Total comments: 6

Patch Set 6 : Rebase, address comments, and auto format. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -88 lines) Patch
M mojo/message_pump/message_pump_mojo.h View 1 2 3 4 5 3 chunks +25 lines, -9 lines 0 comments Download
M mojo/message_pump/message_pump_mojo.cc View 1 2 3 4 5 9 chunks +173 lines, -79 lines 0 comments Download
M mojo/message_pump/message_pump_mojo_unittest.cc View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download
M third_party/mojo/src/mojo/edk/embedder/entrypoints.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (7 generated)
Anand Mistry (off Chromium)
This is the last of a set of CLs to improve MessagePumpMojo performance. By how ...
5 years ago (2015-12-08 06:37:01 UTC) #3
sky
https://codereview.chromium.org/1467953002/diff/20001/mojo/message_pump/message_pump_mojo.cc File mojo/message_pump/message_pump_mojo.cc (right): https://codereview.chromium.org/1467953002/diff/20001/mojo/message_pump/message_pump_mojo.cc#newcode18 mojo/message_pump/message_pump_mojo.cc:18: #include "mojo/public/c/system/wait_set.h" It's a bit hard to review this ...
5 years ago (2015-12-08 18:26:14 UTC) #5
Anand Mistry (off Chromium)
https://codereview.chromium.org/1467953002/diff/20001/mojo/message_pump/message_pump_mojo.cc File mojo/message_pump/message_pump_mojo.cc (right): https://codereview.chromium.org/1467953002/diff/20001/mojo/message_pump/message_pump_mojo.cc#newcode18 mojo/message_pump/message_pump_mojo.cc:18: #include "mojo/public/c/system/wait_set.h" On 2015/12/08 18:26:14, sky wrote: > It's ...
5 years ago (2015-12-09 00:01:21 UTC) #6
Anand Mistry (off Chromium)
PTAL. The API definition as well as old EDK implementation are submitted. The new EDK ...
5 years ago (2015-12-10 23:44:08 UTC) #7
sky
https://codereview.chromium.org/1467953002/diff/40001/mojo/message_pump/message_pump_mojo.cc File mojo/message_pump/message_pump_mojo.cc (right): https://codereview.chromium.org/1467953002/diff/40001/mojo/message_pump/message_pump_mojo.cc#newcode108 mojo/message_pump/message_pump_mojo.cc:108: CHECK(result == MOJO_RESULT_OK || result == MOJO_RESULT_INVALID_ARGUMENT); Can you ...
5 years ago (2015-12-11 17:49:01 UTC) #8
Anand Mistry (off Chromium)
I've already split the handle change into https://codereview.chromium.org/1526493002/ https://codereview.chromium.org/1467953002/diff/40001/mojo/message_pump/message_pump_mojo.cc File mojo/message_pump/message_pump_mojo.cc (right): https://codereview.chromium.org/1467953002/diff/40001/mojo/message_pump/message_pump_mojo.cc#newcode108 mojo/message_pump/message_pump_mojo.cc:108: CHECK(result ...
5 years ago (2015-12-14 03:16:21 UTC) #9
yzshen1
Hi, Anand. If Scott thinks the CL is ready, please feel free to land it ...
5 years ago (2015-12-14 22:26:23 UTC) #10
sky
https://codereview.chromium.org/1467953002/diff/40001/mojo/message_pump/message_pump_mojo.cc File mojo/message_pump/message_pump_mojo.cc (right): https://codereview.chromium.org/1467953002/diff/40001/mojo/message_pump/message_pump_mojo.cc#newcode108 mojo/message_pump/message_pump_mojo.cc:108: CHECK(result == MOJO_RESULT_OK || result == MOJO_RESULT_INVALID_ARGUMENT); On 2015/12/14 ...
4 years, 12 months ago (2015-12-28 17:29:44 UTC) #11
Anand Mistry (off Chromium)
On 2015/12/28 17:29:44, sky wrote: > https://codereview.chromium.org/1467953002/diff/40001/mojo/message_pump/message_pump_mojo.cc > File mojo/message_pump/message_pump_mojo.cc (right): > > https://codereview.chromium.org/1467953002/diff/40001/mojo/message_pump/message_pump_mojo.cc#newcode108 > ...
4 years, 11 months ago (2015-12-29 17:51:09 UTC) #12
sky
Ok, LGTM
4 years, 11 months ago (2015-12-29 19:17:31 UTC) #13
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/1467953002/diff/80001/mojo/message_pump/message_pump_mojo.cc File mojo/message_pump/message_pump_mojo.cc (right): https://codereview.chromium.org/1467953002/diff/80001/mojo/message_pump/message_pump_mojo.cc#newcode60 mojo/message_pump/message_pump_mojo.cc:60: result = MojoCreateWaitSet(&handle); general no-op comment: We should ...
4 years, 11 months ago (2016-01-05 17:02:29 UTC) #14
yzshen1
LGTM https://codereview.chromium.org/1467953002/diff/80001/mojo/message_pump/message_pump_mojo.h File mojo/message_pump/message_pump_mojo.h (right): https://codereview.chromium.org/1467953002/diff/80001/mojo/message_pump/message_pump_mojo.h#newcode104 mojo/message_pump/message_pump_mojo.h:104: // Removes the given invalid handle. This is ...
4 years, 11 months ago (2016-01-05 17:41:05 UTC) #15
Anand Mistry (off Chromium)
I'm back, and will be submitting this asap. Thanks for the reviews. https://codereview.chromium.org/1467953002/diff/80001/mojo/message_pump/message_pump_mojo.cc File mojo/message_pump/message_pump_mojo.cc ...
4 years, 11 months ago (2016-01-05 23:29:52 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1467953002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1467953002/100001
4 years, 11 months ago (2016-01-06 00:22:31 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 11 months ago (2016-01-06 00:29:25 UTC) #21
commit-bot: I haz the power
4 years, 11 months ago (2016-01-06 00:30:21 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/6aebd413af88c78068be89cf174a2eafe5af3fe0
Cr-Commit-Position: refs/heads/master@{#367716}

Powered by Google App Engine
This is Rietveld 408576698