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

Unified Diff: runtime/vm/isolate.cc

Issue 303863003: Don't idle tick isolates paused before start or exit (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index 003c59d849655993ab0a7cff2f4069ba3d6d2f03..2a9f10e56afb72662a0b29fbdee9367d42589502 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -1015,6 +1015,12 @@ intptr_t Isolate::ProfileInterrupt() {
// Profiler blocked for this isolate.
return 0;
}
+ if (message_handler()->paused_on_start() ||
+ message_handler()->paused_on_exit() ||
+ debugger()->IsPaused()) {
+ // Paused at start / exit / breakpoint. Don't tick.
+ return 0;
+ }
InterruptableThreadState* state = thread_state();
if (state == NULL) {
// Isolate is not scheduled on a thread.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698