summaryrefslogtreecommitdiffstats
path: root/src/mark_sweep.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mark_sweep.h')
-rw-r--r--src/mark_sweep.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mark_sweep.h b/src/mark_sweep.h
index 8c37456..22aad15 100644
--- a/src/mark_sweep.h
+++ b/src/mark_sweep.h
@@ -22,7 +22,8 @@ class MarkSweep {
weak_reference_list_(NULL),
finalizer_reference_list_(NULL),
phantom_reference_list_(NULL),
- cleared_reference_list_(NULL) {
+ cleared_reference_list_(NULL),
+ class_count_(0), array_count_(0), other_count_(0) {
}
~MarkSweep();
@@ -138,6 +139,10 @@ class MarkSweep {
Object* cleared_reference_list_;
+ size_t class_count_;
+ size_t array_count_;
+ size_t other_count_;
+
friend class InternTableEntryIsUnmarked;
DISALLOW_COPY_AND_ASSIGN(MarkSweep);