src/hotspot/share/gc/z/zHeapIterator.hpp
changeset 50871 d283a214f42b
parent 50525 767cdb97f103
child 52139 5a2af44ecb83
--- a/src/hotspot/share/gc/z/zHeapIterator.hpp	Wed Jun 27 15:02:53 2018 +0200
+++ b/src/hotspot/share/gc/z/zHeapIterator.hpp	Wed Jun 27 15:04:27 2018 +0200
@@ -42,6 +42,7 @@
 
   ZVisitStack _visit_stack;
   ZVisitMap   _visit_map;
+  const bool  _visit_referents;
 
   size_t object_index_max() const;
   size_t object_index(oop obj) const;
@@ -50,8 +51,10 @@
   void push(oop obj);
   void drain(ObjectClosure* cl);
 
+  bool visit_referents() const;
+
 public:
-  ZHeapIterator();
+  ZHeapIterator(bool visit_referents);
   ~ZHeapIterator();
 
   void objects_do(ObjectClosure* cl);