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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 1852393004: Fix background compilation issues when creating snapshots. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: more Created 4 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/compiler.cc ('k') | runtime/vm/heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.cc
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
index 01ed58accef6608c1cda1b02d640abeeefdc0ca4..fd0050dd4dc4337688e6d8b605c4a683eed16571 100644
--- a/runtime/vm/dart_api_impl.cc
+++ b/runtime/vm/dart_api_impl.cc
@@ -1483,6 +1483,8 @@ DART_EXPORT Dart_Handle Dart_CreateSnapshot(
return state;
}
I->heap()->CollectAllGarbage();
+ I->StopBackgroundCompiler();
+
#if defined(DEBUG)
FunctionVisitor check_canonical(T);
I->heap()->IterateObjects(&check_canonical);
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698