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

Unified Diff: runtime/vm/heap.cc

Issue 2012973002: Background finalization. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
Index: runtime/vm/heap.cc
diff --git a/runtime/vm/heap.cc b/runtime/vm/heap.cc
index 2c92b17c52f3692024ff02d1c4f8fd54507c8123..57699f59c1a1a6220ac642d5c9c44dfa9fdf9f77 100644
--- a/runtime/vm/heap.cc
+++ b/runtime/vm/heap.cc
@@ -23,6 +23,7 @@
#include "vm/verifier.h"
#include "vm/virtual_memory.h"
#include "vm/weak_table.h"
+#include "vm/dart_api_state.h"
siva 2016/06/02 20:18:05 Why is 'dart_api_state.h' included here?
rmacnak 2016/06/03 01:08:31 I started with BackgroundFinalizer in this file. R
namespace dart {
@@ -35,6 +36,8 @@ Heap::Heap(Isolate* isolate,
old_space_(this, max_old_gen_words, max_external_words),
barrier_(new Monitor()),
barrier_done_(new Monitor()),
+ finalization_tasks_lock_(new Monitor()),
+ finalization_tasks_(0),
read_only_(false),
gc_new_space_in_progress_(false),
gc_old_space_in_progress_(false),

Powered by Google App Engine
This is Rietveld 408576698