summaryrefslogtreecommitdiffstats
path: root/runtime/gc/collector/garbage_collector.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/gc/collector/garbage_collector.h')
-rw-r--r--runtime/gc/collector/garbage_collector.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/gc/collector/garbage_collector.h b/runtime/gc/collector/garbage_collector.h
index ed5207a356..c5a8d5d98c 100644
--- a/runtime/gc/collector/garbage_collector.h
+++ b/runtime/gc/collector/garbage_collector.h
@@ -22,6 +22,7 @@
#include "base/timing_logger.h"
#include "gc/collector_type.h"
#include "gc/gc_cause.h"
+#include "gc_root.h"
#include "gc_type.h"
#include <stdint.h>
#include <vector>
@@ -112,7 +113,7 @@ class Iteration {
DISALLOW_COPY_AND_ASSIGN(Iteration);
};
-class GarbageCollector {
+class GarbageCollector : public RootVisitor {
public:
class SCOPED_LOCKABLE ScopedPause {
public: