| Index: runtime/vm/isolate.cc
|
| diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
|
| index 0cc7376a0e4653a642d32b23e5941cb6816db043..908f0f29a47a32aaec4dc8f7e132ccf6b18d97c3 100644
|
| --- a/runtime/vm/isolate.cc
|
| +++ b/runtime/vm/isolate.cc
|
| @@ -1504,6 +1504,9 @@ static void ShutdownIsolate(uword parameter) {
|
| // TODO(27003): Enable for precompiled.
|
| #if defined(DEBUG) && !defined(DART_PRECOMPILED_RUNTIME)
|
| if (!isolate->HasAttemptedReload()) {
|
| + // For this verification we need to stop the background compiler earlier.
|
| + // This would otherwise happen in Dart::ShowdownIsolate.
|
| + isolate->StopBackgroundCompiler();
|
| isolate->heap()->CollectAllGarbage();
|
| VerifyCanonicalVisitor check_canonical(thread);
|
| isolate->heap()->IterateObjects(&check_canonical);
|
|
|