< prev index next >

src/share/vm/memory/referenceProcessor.hpp

Print this page

        

@@ -208,11 +208,11 @@
   }
 };
 
 class ReferenceProcessor : public CHeapObj<mtGC> {
 
- private:
+ public:
   size_t total_count(DiscoveredList lists[]);
 
  protected:
   // Compatibility with pre-4965777 JDK's
   static bool _pending_list_uses_discovered_field;

@@ -666,10 +666,14 @@
 
   // Returns true if a task marks some oops as alive.
   bool marks_oops_alive() const
   { return _marks_oops_alive; }
 
+  bool is_empty() const {
+    return _ref_processor.total_count(_refs_lists) == 0;
+  }
+
 protected:
   ReferenceProcessor& _ref_processor;
   DiscoveredList*     _refs_lists;
   const bool          _marks_oops_alive;
 };
< prev index next >