< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.hpp

Print this page
@@ -41,10 +41,11 @@
    // Bias cset map's base address for fast test if an oop is in cset
    char* const           _biased_cset_map;
  
    ShenandoahHeap* const _heap;
  
+   bool                  _has_old_regions;
    size_t                _garbage;
    size_t                _used;
    size_t                _region_count;
  
    shenandoah_padding(0);

@@ -75,12 +76,14 @@
    inline bool is_in(oop obj)                 const;
    inline bool is_in_loc(void* loc)           const;
  
    void print_on(outputStream* out) const;
  
-   size_t used()      const { return _used; }
-   size_t garbage()   const { return _garbage;   }
+   bool has_old_regions() const { return _has_old_regions; }
+   size_t used()          const { return _used; }
+ 
+   size_t garbage()       const { return _garbage; }
    void clear();
  
  private:
    char* map_address() const {
      return _cset_map;
< prev index next >