| Index: runtime/bin/eventhandler_android.cc
|
| diff --git a/runtime/bin/eventhandler_android.cc b/runtime/bin/eventhandler_android.cc
|
| index 90f94b41be3fd8c69a3a82ffa70e3beafa0daf9e..975a6d1f5290739888a0a41e3a96c11d95dfd51e 100644
|
| --- a/runtime/bin/eventhandler_android.cc
|
| +++ b/runtime/bin/eventhandler_android.cc
|
| @@ -160,6 +160,9 @@ void EventHandlerImplementation::WakeupHandler(intptr_t id,
|
| msg.id = id;
|
| msg.dart_port = dart_port;
|
| msg.data = data;
|
| + // WriteToBlocking will write up to 512 bytes atomically, and since our msg
|
| + // is smaller than 512, we don't need a thread lock.
|
| + // See: http://linux.die.net/man/7/pipe, section 'Pipe_buf'.
|
| intptr_t result =
|
| FDUtils::WriteToBlocking(interrupt_fds_[1], &msg, kInterruptMessageSize);
|
| if (result != kInterruptMessageSize) {
|
|
|