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

changeset 3456
9509c20bba28
parent 3416
2ace1c4ee8da
child 3463
d30fa85f9994
     1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp	Mon Jan 16 11:21:21 2012 +0100
     1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp	Mon Jan 16 22:10:05 2012 +0100
     1.3 @@ -355,6 +355,7 @@
     1.4    // explicitly started if:
     1.5    // (a) cause == _gc_locker and +GCLockerInvokesConcurrent, or
     1.6    // (b) cause == _java_lang_system_gc and +ExplicitGCInvokesConcurrent.
     1.7 +  // (c) cause == _g1_humongous_allocation
     1.8    bool should_do_concurrent_full_gc(GCCause::Cause cause);
     1.9  
    1.10    // Keeps track of how many "full collections" (i.e., Full GCs or
    1.11 @@ -1172,6 +1173,10 @@
    1.12      _old_set.remove(hr);
    1.13    }
    1.14  
    1.15 +  size_t non_young_capacity_bytes() {
    1.16 +    return _old_set.total_capacity_bytes() + _humongous_set.total_capacity_bytes();
    1.17 +  }
    1.18 +
    1.19    void set_free_regions_coming();
    1.20    void reset_free_regions_coming();
    1.21    bool free_regions_coming() { return _free_regions_coming; }

mercurial