| Index: runtime/bin/dbg_message.cc
|
| ===================================================================
|
| --- runtime/bin/dbg_message.cc (revision 13660)
|
| +++ runtime/bin/dbg_message.cc (working copy)
|
| @@ -992,19 +992,21 @@
|
| if (queue->isolate_id() == isolate_id) {
|
| list_ = queue->next(); // Remove from list.
|
| delete queue; // Delete the message queue.
|
| + return;
|
| } else {
|
| DbgMsgQueue* iterator = queue;
|
| queue = queue->next();
|
| while (queue != NULL) {
|
| - if (queue->isolate_id() != isolate_id) {
|
| + if (queue->isolate_id() == isolate_id) {
|
| iterator->set_next(queue->next()); // Remove from list.
|
| delete queue; // Delete the message queue.
|
| - break;
|
| + return;
|
| }
|
| iterator = queue;
|
| queue = queue->next();
|
| }
|
| }
|
| + UNREACHABLE();
|
| }
|
|
|
|
|
|
|