[Lldb-commits] [PATCH] D32600: Resurrect pselect MainLoop implementation

2017-04-28 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL301636: Resurrect pselect MainLoop implementation (authored by labath). Changed prior to commit: https://reviews.llvm.org/D32600?vs=97074=97075#toc Repository: rL LLVM

[Lldb-commits] [PATCH] D32600: Resurrect pselect MainLoop implementation

2017-04-28 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I am going to check this in to unbork the android bots. I'm happy to address any additional feedback in a followup. I'm also planning to come some unit tests for this class next week. https://reviews.llvm.org/D32600 ___

[Lldb-commits] [PATCH] D32600: Resurrect pselect MainLoop implementation

2017-04-28 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: source/Host/common/MainLoop.cpp:82 + int queue_id; + std::vector events; + struct kevent event_list[4]; eugene wrote: > here and below struct seems to be redundant One of them holds the input events, and the other the

[Lldb-commits] [PATCH] D32600: Resurrect pselect MainLoop implementation

2017-04-27 Thread Zachary Turner via Phabricator via lldb-commits
zturner added inline comments. Comment at: source/Host/common/MainLoop.cpp:135 + +template void MainLoop::RunImpl::ForEachReadFD(F &) { + assert(num_events >= 0); Why do we need this function? Just have a function that returns an `ArrayRef` and let the

[Lldb-commits] [PATCH] D32600: Resurrect pselect MainLoop implementation

2017-04-27 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added inline comments. Comment at: source/Host/common/MainLoop.cpp:82 + int queue_id; + std::vector events; + struct kevent event_list[4]; here and below struct seems to be redundant https://reviews.llvm.org/D32600

[Lldb-commits] [PATCH] D32600: Resurrect pselect MainLoop implementation

2017-04-27 Thread Chris Bieneman via Phabricator via lldb-commits
beanz accepted this revision. beanz added a comment. This revision is now accepted and ready to land. This looks like a nice improvement. There are some formatting inconsistencies, can you run clang-format? https://reviews.llvm.org/D32600 ___

[Lldb-commits] [PATCH] D32600: Resurrect pselect MainLoop implementation

2017-04-27 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. Herald added a subscriber: srhines. It turns out that even though ppoll is available on all the android devices we support, it does not seem to be working properly on all of them -- MainLoop just does a busy loop with ppoll returning EINTR and not making any