< prev index next >

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

Print this page




 822   // The amount of survivor regions after a collection.
 823   uint _recorded_survivor_regions;
 824   // List of survivor regions.
 825   HeapRegion* _recorded_survivor_head;
 826   HeapRegion* _recorded_survivor_tail;
 827 
 828   ageTable _survivors_age_table;
 829 
 830 public:
 831   uint tenuring_threshold() const { return _tenuring_threshold; }
 832 
 833   static const uint REGIONS_UNLIMITED = (uint) -1;
 834 
 835   uint max_regions(InCSetState dest) {
 836     switch (dest.value()) {
 837       case InCSetState::Young:
 838         return _max_survivor_regions;
 839       case InCSetState::Old:
 840         return REGIONS_UNLIMITED;
 841       default:
 842         assert(false, err_msg("Unknown dest state: " CSETSTATE_FORMAT, dest.value()));
 843         break;
 844     }
 845     // keep some compilers happy
 846     return 0;
 847   }
 848 
 849   void note_start_adding_survivor_regions() {
 850     _survivor_surv_rate_group->start_adding_regions();
 851   }
 852 
 853   void note_stop_adding_survivor_regions() {
 854     _survivor_surv_rate_group->stop_adding_regions();
 855   }
 856 
 857   void record_survivor_regions(uint regions,
 858                                HeapRegion* head,
 859                                HeapRegion* tail) {
 860     _recorded_survivor_regions = regions;
 861     _recorded_survivor_head    = head;
 862     _recorded_survivor_tail    = tail;




 822   // The amount of survivor regions after a collection.
 823   uint _recorded_survivor_regions;
 824   // List of survivor regions.
 825   HeapRegion* _recorded_survivor_head;
 826   HeapRegion* _recorded_survivor_tail;
 827 
 828   ageTable _survivors_age_table;
 829 
 830 public:
 831   uint tenuring_threshold() const { return _tenuring_threshold; }
 832 
 833   static const uint REGIONS_UNLIMITED = (uint) -1;
 834 
 835   uint max_regions(InCSetState dest) {
 836     switch (dest.value()) {
 837       case InCSetState::Young:
 838         return _max_survivor_regions;
 839       case InCSetState::Old:
 840         return REGIONS_UNLIMITED;
 841       default:
 842         assert(false, "Unknown dest state: " CSETSTATE_FORMAT, dest.value());
 843         break;
 844     }
 845     // keep some compilers happy
 846     return 0;
 847   }
 848 
 849   void note_start_adding_survivor_regions() {
 850     _survivor_surv_rate_group->start_adding_regions();
 851   }
 852 
 853   void note_stop_adding_survivor_regions() {
 854     _survivor_surv_rate_group->stop_adding_regions();
 855   }
 856 
 857   void record_survivor_regions(uint regions,
 858                                HeapRegion* head,
 859                                HeapRegion* tail) {
 860     _recorded_survivor_regions = regions;
 861     _recorded_survivor_head    = head;
 862     _recorded_survivor_tail    = tail;


< prev index next >