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

Unified Diff: runtime/vm/thread.cc

Issue 1107213003: Fix idle ticks during isolate startup (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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/tags.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread.cc
diff --git a/runtime/vm/thread.cc b/runtime/vm/thread.cc
index 214007808a903c1b2c49aff99c95434e0c1332d2..573c11b3ca23d8f658648d8708a989a4f4fb8064 100644
--- a/runtime/vm/thread.cc
+++ b/runtime/vm/thread.cc
@@ -77,7 +77,11 @@ void Thread::ExitIsolate() {
if (thread == NULL) return;
Isolate* isolate = thread->isolate();
ASSERT(isolate != NULL);
- isolate->set_vm_tag(VMTag::kIdleTagId);
+ if (isolate->is_runnable()) {
+ isolate->set_vm_tag(VMTag::kIdleTagId);
+ } else {
+ isolate->set_vm_tag(VMTag::kLoadWaitTagId);
+ }
isolate->set_thread_state(NULL);
Profiler::EndExecution(isolate);
isolate->set_mutator_thread(NULL);
« no previous file with comments | « runtime/vm/tags.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698