| Index: runtime/vm/compiler.cc
|
| diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
|
| index 26e51fef239ea5441738b8d239fbafab070bfdf3..28826a50a5641df3a43284c1ea53c3c3193c445f 100644
|
| --- a/runtime/vm/compiler.cc
|
| +++ b/runtime/vm/compiler.cc
|
| @@ -1616,6 +1616,7 @@ class BackgroundCompilationQueue {
|
| if (first_ == NULL) {
|
| first_ = value;
|
| } else {
|
| + ASSERT(last_ != NULL);
|
| last_->set_next(value);
|
| }
|
| value->set_next(NULL);
|
| @@ -1732,6 +1733,7 @@ void BackgroundCompiler::Run() {
|
| void BackgroundCompiler::CompileOptimized(const Function& function) {
|
| ASSERT(Thread::Current()->IsMutatorThread());
|
| MonitorLocker ml(queue_monitor_);
|
| + ASSERT(running_);
|
| if (function_queue()->ContainsObj(function)) {
|
| return;
|
| }
|
|
|