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

Unified Diff: runtime/vm/isolate.cc

Issue 1073983010: Add asserts that isolates have a root library set up before they become runnable. (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/dart_api_impl.cc ('k') | tests/lib/mirrors/spawn_function_root_library_test.dart » ('j') | 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 7bb53061b26b518f91fc172507b12c0052887b1a..7b5e92e8c93ece35d869341c85db85270d184e06 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -938,6 +938,7 @@ bool Isolate::MakeRunnable() {
}
// Set the isolate as runnable and if we are being spawned schedule
// isolate on thread pool for execution.
+ ASSERT(object_store()->root_library() != Library::null());
is_runnable_ = true;
if (!ServiceIsolate::IsServiceIsolate(this)) {
message_handler()->set_pause_on_start(FLAG_pause_isolates_on_start);
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | tests/lib/mirrors/spawn_function_root_library_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698