Sweep the monitor list.
Change-Id: I343261206f8bbabd245b404dd95d532255e5d870
diff --git a/src/runtime.cc b/src/runtime.cc
index e0c9d47..a707c4d 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -34,6 +34,7 @@
: verbose_startup_(false),
is_zygote_(false),
default_stack_size_(Thread::kDefaultStackSize),
+ monitor_list_(NULL),
thread_list_(NULL),
intern_table_(NULL),
class_linker_(NULL),
@@ -61,6 +62,7 @@
// Make sure all other non-daemon threads have terminated, and all daemon threads are suspended.
delete thread_list_;
+ delete monitor_list_;
delete class_linker_;
Heap::Destroy();
@@ -426,6 +428,7 @@
default_stack_size_ = options->stack_size_;
+ monitor_list_ = new MonitorList;
thread_list_ = new ThreadList(options->IsVerbose("thread"));
intern_table_ = new InternTable;