| Index: runtime/bin/eventhandler_macos.cc
|
| diff --git a/runtime/bin/eventhandler_macos.cc b/runtime/bin/eventhandler_macos.cc
|
| index 14d67fceeccba0b3c0ac67e152086d9f213e52ba..4f74206c3decc0e1564538708b72e4fc709545e1 100644
|
| --- a/runtime/bin/eventhandler_macos.cc
|
| +++ b/runtime/bin/eventhandler_macos.cc
|
| @@ -59,7 +59,7 @@ static void RemoveFromKqueue(intptr_t kqueue_fd_, SocketData* sd) {
|
| sd->set_write_tracked_by_kqueue(false);
|
| }
|
| if (changes > 0) {
|
| - ASSERT(changes < kMaxChanges);
|
| + ASSERT(changes <= kMaxChanges);
|
| int status =
|
| TEMP_FAILURE_RETRY(kevent(kqueue_fd_, events, changes, NULL, 0, NULL));
|
| if (status == -1) {
|
| @@ -102,7 +102,7 @@ static void UpdateKqueue(intptr_t kqueue_fd_, SocketData* sd) {
|
| }
|
| }
|
| if (changes > 0) {
|
| - ASSERT(changes < kMaxChanges);
|
| + ASSERT(changes <= kMaxChanges);
|
| int status =
|
| TEMP_FAILURE_RETRY(kevent(kqueue_fd_, events, changes, NULL, 0, NULL));
|
| if (status == -1) {
|
|
|