| Index: runtime/vm/message_handler.cc
|
| diff --git a/runtime/vm/message_handler.cc b/runtime/vm/message_handler.cc
|
| index 77604e8d34a5fb9f22741a7e9afd5d0958dd1ce3..c0013e6fe3c0d893ae19d9536dcc3bae13484213 100644
|
| --- a/runtime/vm/message_handler.cc
|
| +++ b/runtime/vm/message_handler.cc
|
| @@ -249,11 +249,11 @@ void MessageHandler::TaskCallback() {
|
| // Temporarily drop the lock when calling out to NotifyPauseOnStart.
|
| // This avoids a dead lock that can occur when this message handler
|
| // tries to post a message while a message is being posted to it.
|
| + paused_on_start_ = true;
|
| + paused_timestamp_ = OS::GetCurrentTimeMillis();
|
| monitor_.Exit();
|
| NotifyPauseOnStart();
|
| monitor_.Enter();
|
| - paused_on_start_ = true;
|
| - paused_timestamp_ = OS::GetCurrentTimeMillis();
|
| }
|
| HandleMessages(false, false);
|
| if (pause_on_start()) {
|
|
|