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

changeset 3120
af2ab04e0038
parent 3119
4f41766176cf
child 3175
4dfb2df418f2
     1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp	Thu Sep 08 05:16:49 2011 -0400
     1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp	Thu Sep 08 16:29:41 2011 +0200
     1.3 @@ -185,6 +185,7 @@
     1.4    bool _adaptive_young_list_length;
     1.5    size_t _young_list_target_length;
     1.6    size_t _young_list_fixed_length;
     1.7 +  size_t _prev_eden_capacity; // used for logging
     1.8  
     1.9    // The max number of regions we can extend the eden by while the GC
    1.10    // locker is active. This should be >= _young_list_target_length;
    1.11 @@ -245,6 +246,10 @@
    1.12  
    1.13    TruncatedSeq* _max_conc_overhead_seq;
    1.14  
    1.15 +  bool   _using_new_ratio_calculations;
    1.16 +  size_t _min_desired_young_length; // as set on the command line or default calculations
    1.17 +  size_t _max_desired_young_length; // as set on the command line or default calculations
    1.18 +
    1.19    size_t _recorded_young_regions;
    1.20    size_t _recorded_non_young_regions;
    1.21    size_t _recorded_region_num;
    1.22 @@ -826,9 +831,8 @@
    1.23      return _all_pause_times_ms->num() + 1;
    1.24    }
    1.25  
    1.26 -  // Recalculate the reserve region number. This should be called
    1.27 -  // after the heap is resized.
    1.28 -  void calculate_reserve(size_t all_regions);
    1.29 +  // This should be called after the heap is resized.
    1.30 +  void record_new_heap_size(size_t new_number_of_regions);
    1.31  
    1.32  protected:
    1.33  
    1.34 @@ -841,6 +845,8 @@
    1.35                                                  size_t max_live_bytes);
    1.36    void record_concurrent_mark_cleanup_end_work2();
    1.37  
    1.38 +  void update_young_list_size_using_newratio(size_t number_of_heap_regions);
    1.39 +
    1.40  public:
    1.41  
    1.42    virtual void init();

mercurial