src/share/vm/gc_implementation/g1/heapRegionRemSet.hpp

changeset 7828
cbc7c4c9e11c
parent 7208
7baf47cb97cb
child 7994
04ff2f6cd0eb
child 8316
626f594dffa6
     1.1 --- a/src/share/vm/gc_implementation/g1/heapRegionRemSet.hpp	Fri May 15 06:47:56 2015 +0000
     1.2 +++ b/src/share/vm/gc_implementation/g1/heapRegionRemSet.hpp	Wed Jan 07 15:15:37 2015 +0100
     1.3 @@ -181,6 +181,10 @@
     1.4    // sense.
     1.5    void add_reference(OopOrNarrowOopStar from, int tid);
     1.6  
     1.7 +  // Returns whether this remembered set (and all sub-sets) have an occupancy
     1.8 +  // that is less or equal than the given occupancy.
     1.9 +  bool occupancy_less_or_equal_than(size_t limit) const;
    1.10 +
    1.11    // Removes any entries shown by the given bitmaps to contain only dead
    1.12    // objects.
    1.13    void scrub(CardTableModRefBS* ctbs, BitMap* region_bm, BitMap* card_bm);
    1.14 @@ -276,6 +280,10 @@
    1.15      return (strong_code_roots_list_length() == 0) && _other_regions.is_empty();
    1.16    }
    1.17  
    1.18 +  bool occupancy_less_or_equal_than(size_t occ) const {
    1.19 +    return (strong_code_roots_list_length() == 0) && _other_regions.occupancy_less_or_equal_than(occ);
    1.20 +  }
    1.21 +
    1.22    size_t occupied() {
    1.23      MutexLockerEx x(&_m, Mutex::_no_safepoint_check_flag);
    1.24      return occupied_locked();

mercurial