1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp Wed Nov 19 14:21:09 2014 -0800 1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp Fri Nov 21 12:08:37 2014 +0100 1.3 @@ -1425,6 +1425,18 @@ 1.4 #endif // PRODUCT 1.5 } 1.6 1.7 +bool G1CollectorPolicy::is_young_list_full() { 1.8 + uint young_list_length = _g1->young_list()->length(); 1.9 + uint young_list_target_length = _young_list_target_length; 1.10 + return young_list_length >= young_list_target_length; 1.11 +} 1.12 + 1.13 +bool G1CollectorPolicy::can_expand_young_list() { 1.14 + uint young_list_length = _g1->young_list()->length(); 1.15 + uint young_list_max_length = _young_list_max_length; 1.16 + return young_list_length < young_list_max_length; 1.17 +} 1.18 + 1.19 uint G1CollectorPolicy::max_regions(int purpose) { 1.20 switch (purpose) { 1.21 case GCAllocForSurvived: