| Index: runtime/bin/eventhandler_macos.cc
|
| diff --git a/runtime/bin/eventhandler_macos.cc b/runtime/bin/eventhandler_macos.cc
|
| index c212d37eefe871d18a55c7d94f7f6212615552c0..4166ce05f160871ba0a3ffd7a3c483f1898eb6c2 100644
|
| --- a/runtime/bin/eventhandler_macos.cc
|
| +++ b/runtime/bin/eventhandler_macos.cc
|
| @@ -180,16 +180,17 @@ void EventHandlerImplementation::WakeupHandler(intptr_t id,
|
|
|
|
|
| bool EventHandlerImplementation::GetInterruptMessage(InterruptMessage* msg) {
|
| + char* dst = reinterpret_cast<char*>(msg);
|
| int total_read = 0;
|
| int bytes_read =
|
| - TEMP_FAILURE_RETRY(read(interrupt_fds_[0], msg, kInterruptMessageSize));
|
| + TEMP_FAILURE_RETRY(read(interrupt_fds_[0], dst, kInterruptMessageSize));
|
| if (bytes_read < 0) {
|
| return false;
|
| }
|
| total_read = bytes_read;
|
| while (total_read < kInterruptMessageSize) {
|
| bytes_read = TEMP_FAILURE_RETRY(read(interrupt_fds_[0],
|
| - msg + total_read,
|
| + dst + total_read,
|
| kInterruptMessageSize - total_read));
|
| if (bytes_read > 0) {
|
| total_read = total_read + bytes_read;
|
|
|