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

Unified Diff: runtime/vm/dart_api_state.cc

Issue 2091023002: Add flag to control background finalization. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | runtime/vm/flag_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_state.cc
diff --git a/runtime/vm/dart_api_state.cc b/runtime/vm/dart_api_state.cc
index b1541a39f97ef9872834e2b74141be7c94431fab..be30a2d5d5258a24423ce38af1ecc3ae4d4a7631 100644
--- a/runtime/vm/dart_api_state.cc
+++ b/runtime/vm/dart_api_state.cc
@@ -18,6 +18,7 @@ BackgroundFinalizer::BackgroundFinalizer(Isolate* isolate,
FinalizationQueue* queue) :
isolate_(isolate),
queue_(queue) {
+ ASSERT(FLAG_background_finalization);
MonitorLocker ml(isolate->heap()->finalization_tasks_lock());
isolate->heap()->set_finalization_tasks(
isolate->heap()->finalization_tasks() + 1);
« no previous file with comments | « no previous file | runtime/vm/flag_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698