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

Issue 2903373003: [fuchsia] Replace use of epoll with mx_ primitives in process_fuchsia (Closed)

Created:
3 years, 7 months ago by jamesr1
Modified:
3 years, 6 months ago
Reviewers:
zra, kulakowski1
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[fuchsia] Replace use of epoll with mx_ primitives in process_fuchsia process_fuchsia.cc has the ability to drain stdout, stderr, and exit status from a child process. It was using epoll to multiplex these streams which worked but required complicated emulation in libc which we'd like to unwind as well as some tricky locking. This replaces the epoll with a direct mx_object_wait_many() call that waits on the Magenta handles backing the streams. R=zra@google.com Committed: https://github.com/dart-lang/sdk/commit/d32e55e17b385c83f17604d6a15f9932c69daf42

Patch Set 1 #

Total comments: 13

Patch Set 2 : address feedback #

Patch Set 3 : [fuchsia] Replace use of epoll with mx_ primitives in process_fuchsia #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -75 lines) Patch
M runtime/bin/process_fuchsia.cc View 1 2 4 chunks +84 lines, -75 lines 2 comments Download

Messages

Total messages: 9 (2 generated)
jamesr1
Zach - I've tested this by running 'hello_fuchsia.dart'. I left the usleep() in place, although ...
3 years, 7 months ago (2017-05-25 23:49:21 UTC) #2
zra
lgtm w/ nits https://codereview.chromium.org/2903373003/diff/1/runtime/bin/process_fuchsia.cc File runtime/bin/process_fuchsia.cc (left): https://codereview.chromium.org/2903373003/diff/1/runtime/bin/process_fuchsia.cc#oldcode428 runtime/bin/process_fuchsia.cc:428: Dart VM style is two newlines ...
3 years, 7 months ago (2017-05-26 16:13:22 UTC) #3
jamesr1
https://codereview.chromium.org/2903373003/diff/1/runtime/bin/process_fuchsia.cc File runtime/bin/process_fuchsia.cc (left): https://codereview.chromium.org/2903373003/diff/1/runtime/bin/process_fuchsia.cc#oldcode428 runtime/bin/process_fuchsia.cc:428: On 2017/05/26 at 16:13:22, zra wrote: > Dart VM ...
3 years, 7 months ago (2017-05-27 00:14:10 UTC) #4
jamesr1
Feedback addressed in PS3. Making MxioWaitEntry noncopyable makes a lot of sense, but required tweaking ...
3 years, 7 months ago (2017-05-27 00:21:39 UTC) #5
kulakowski1
You're holding wait_begin/end and the mxio stuff correctly. Just the one comment inline. https://codereview.chromium.org/2903373003/diff/40001/runtime/bin/process_fuchsia.cc File ...
3 years, 6 months ago (2017-05-30 20:47:55 UTC) #6
jamesr1
https://codereview.chromium.org/2903373003/diff/40001/runtime/bin/process_fuchsia.cc File runtime/bin/process_fuchsia.cc (right): https://codereview.chromium.org/2903373003/diff/40001/runtime/bin/process_fuchsia.cc#newcode556 runtime/bin/process_fuchsia.cc:556: return ProcessWaitCleanup(err, err, exit_event); On 2017/05/30 at 20:47:55, kulakowski1 ...
3 years, 6 months ago (2017-05-30 20:53:59 UTC) #7
jamesr1
3 years, 6 months ago (2017-05-30 20:59:14 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
d32e55e17b385c83f17604d6a15f9932c69daf42 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698