Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: runtime/vm/message_handler.cc

Issue 1142283003: Ensure that the ThreadInterrupter is awake after debugging (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/debugger.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/message_handler.cc
diff --git a/runtime/vm/message_handler.cc b/runtime/vm/message_handler.cc
index 34e3b40a2900d290dcd2011bd69f983b05865d9e..6a473dd74033f4c6d019be2437de0c7a8ec29aa9 100644
--- a/runtime/vm/message_handler.cc
+++ b/runtime/vm/message_handler.cc
@@ -7,6 +7,7 @@
#include "vm/dart.h"
#include "vm/lockers.h"
#include "vm/port.h"
+#include "vm/thread_interrupter.h"
namespace dart {
@@ -145,6 +146,10 @@ bool MessageHandler::HandleMessages(bool allow_normal_messages,
// If isolate() returns NULL StartIsolateScope does nothing.
StartIsolateScope start_isolate(isolate());
+ // ThreadInterrupter may have gone to sleep waiting while waiting for
+ // an isolate to start handling messages.
+ ThreadInterrupter::WakeUp();
+
// TODO(turnidge): Add assert that monitor_ is held here.
bool result = true;
Message::Priority min_priority = (allow_normal_messages && !paused()) ?
« no previous file with comments | « runtime/vm/debugger.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698