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

Issue 905733002: Extract common Mask/Dart_Port settings of linux event handler implementation to eventhandler.h (Closed)

Created:
5 years, 10 months ago by kustermann
Modified:
5 years, 10 months ago
Reviewers:
wibling, Søren Gjesse
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Extract common Mask/Dart_Port settings of linux event handler implementation to eventhandler.h R=sgjesse@google.com, wibling@google.com Committed: https://code.google.com/p/dart/source/detail?r=43585

Patch Set 1 #

Total comments: 19

Patch Set 2 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+620 lines, -315 lines) Patch
M dart/runtime/bin/eventhandler.h View 1 4 chunks +366 lines, -2 lines 0 comments Download
M dart/runtime/bin/eventhandler_android.h View 3 chunks +24 lines, -40 lines 0 comments Download
M dart/runtime/bin/eventhandler_android.cc View 1 12 chunks +109 lines, -57 lines 0 comments Download
M dart/runtime/bin/eventhandler_linux.h View 3 chunks +20 lines, -165 lines 0 comments Download
M dart/runtime/bin/eventhandler_linux.cc View 1 7 chunks +101 lines, -51 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
kustermann
Incorporated gustav's changes. If you have ideas of better handling this duplication of tokens/masks/... let ...
5 years, 10 months ago (2015-02-06 13:40:21 UTC) #2
wibling
lgtm https://codereview.chromium.org/905733002/diff/1/dart/runtime/bin/eventhandler.h File dart/runtime/bin/eventhandler.h (right): https://codereview.chromium.org/905733002/diff/1/dart/runtime/bin/eventhandler.h#newcode197 dart/runtime/bin/eventhandler.h:197: if (head_ != NULL && head_->next_ != NULL) ...
5 years, 10 months ago (2015-02-06 14:09:28 UTC) #3
Søren Gjesse
LGTM I like all the asserts you have added. https://codereview.chromium.org/905733002/diff/1/dart/runtime/bin/eventhandler.h File dart/runtime/bin/eventhandler.h (right): https://codereview.chromium.org/905733002/diff/1/dart/runtime/bin/eventhandler.h#newcode246 dart/runtime/bin/eventhandler.h:246: ...
5 years, 10 months ago (2015-02-06 14:42:18 UTC) #4
kustermann
https://codereview.chromium.org/905733002/diff/1/dart/runtime/bin/eventhandler.h File dart/runtime/bin/eventhandler.h (right): https://codereview.chromium.org/905733002/diff/1/dart/runtime/bin/eventhandler.h#newcode197 dart/runtime/bin/eventhandler.h:197: if (head_ != NULL && head_->next_ != NULL) { ...
5 years, 10 months ago (2015-02-09 08:50:22 UTC) #6
kustermann
Committed patchset #2 (id:20001) manually as 43585 (presubmit successful).
5 years, 10 months ago (2015-02-09 08:50:54 UTC) #7
Søren Gjesse
5 years, 10 months ago (2015-02-09 09:09:21 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/905733002/diff/1/dart/runtime/bin/eventhandle...
File dart/runtime/bin/eventhandler_linux.cc (right):

https://codereview.chromium.org/905733002/diff/1/dart/runtime/bin/eventhandle...
dart/runtime/bin/eventhandler_linux.cc:148: } else {
On 2015/02/09 08:50:22, kustermann wrote:
> On 2015/02/06 14:42:18, Søren Gjesse wrote:
> > Use UpdateEpollInstance here. Maybe also on Android.
> 
> That would be an infinite recursive call, this function is
UpdateEpollInstance!
> 
> We could add an optimization to selectively modify the epoll fd and try not to
> remove+add it, but I think this is not a very common thing to go from
>   kReadEvent -> kWriteEvent
>   kWriteEvent -> kReadEvent
>   kReadEvent|kWriteEvent -> kReadEvent
>   kReadEvent|kWriteEvent -> kWriteEvent
>   ...

It probably isn't. We should still consider using EPOLL_CTL_MOD (I thought we
already had a method for that).

Powered by Google App Engine
This is Rietveld 408576698