875 // The amount of survivor regions after a collection.
876 uint _recorded_survivor_regions;
877 // List of survivor regions.
878 HeapRegion* _recorded_survivor_head;
879 HeapRegion* _recorded_survivor_tail;
880
881 ageTable _survivors_age_table;
882
883 public:
884 uint tenuring_threshold() const { return _tenuring_threshold; }
885
886 static const uint REGIONS_UNLIMITED = (uint) -1;
887
888 uint max_regions(InCSetState dest) {
889 switch (dest.value()) {
890 case InCSetState::Young:
891 return _max_survivor_regions;
892 case InCSetState::Old:
893 return REGIONS_UNLIMITED;
894 default:
895 assert(false, err_msg("Unknown dest state: " CSETSTATE_FORMAT, dest.value()));
896 break;
897 }
898 // keep some compilers happy
899 return 0;
900 }
901
902 void note_start_adding_survivor_regions() {
903 _survivor_surv_rate_group->start_adding_regions();
904 }
905
906 void note_stop_adding_survivor_regions() {
907 _survivor_surv_rate_group->stop_adding_regions();
908 }
909
910 void record_survivor_regions(uint regions,
911 HeapRegion* head,
912 HeapRegion* tail) {
913 _recorded_survivor_regions = regions;
914 _recorded_survivor_head = head;
915 _recorded_survivor_tail = tail;
916 }
917
918 uint recorded_survivor_regions() {
919 return _recorded_survivor_regions;
|
875 // The amount of survivor regions after a collection.
876 uint _recorded_survivor_regions;
877 // List of survivor regions.
878 HeapRegion* _recorded_survivor_head;
879 HeapRegion* _recorded_survivor_tail;
880
881 ageTable _survivors_age_table;
882
883 public:
884 uint tenuring_threshold() const { return _tenuring_threshold; }
885
886 static const uint REGIONS_UNLIMITED = (uint) -1;
887
888 uint max_regions(InCSetState dest) {
889 switch (dest.value()) {
890 case InCSetState::Young:
891 return _max_survivor_regions;
892 case InCSetState::Old:
893 return REGIONS_UNLIMITED;
894 default:
895 fatal(err_msg("Unknown dest state: " CSETSTATE_FORMAT, dest.value()));
896 break;
897 }
898 }
899
900 void note_start_adding_survivor_regions() {
901 _survivor_surv_rate_group->start_adding_regions();
902 }
903
904 void note_stop_adding_survivor_regions() {
905 _survivor_surv_rate_group->stop_adding_regions();
906 }
907
908 void record_survivor_regions(uint regions,
909 HeapRegion* head,
910 HeapRegion* tail) {
911 _recorded_survivor_regions = regions;
912 _recorded_survivor_head = head;
913 _recorded_survivor_tail = tail;
914 }
915
916 uint recorded_survivor_regions() {
917 return _recorded_survivor_regions;
|