1.1 --- a/src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp Wed Apr 18 07:21:15 2012 -0400 1.2 +++ b/src/share/vm/gc_implementation/g1/g1CollectorPolicy.hpp Wed Apr 18 13:39:55 2012 -0400 1.3 @@ -288,8 +288,6 @@ 1.4 1.5 TruncatedSeq* _cost_per_byte_ms_during_cm_seq; 1.6 1.7 - TruncatedSeq* _young_gc_eff_seq; 1.8 - 1.9 G1YoungGenSizer* _young_gen_sizer; 1.10 1.11 uint _eden_cset_region_length; 1.12 @@ -315,9 +313,6 @@ 1.13 1.14 size_t _rs_lengths_prediction; 1.15 1.16 - size_t _known_garbage_bytes; 1.17 - double _known_garbage_ratio; 1.18 - 1.19 double sigma() { return _sigma; } 1.20 1.21 // A function that prevents us putting too much stock in small sample 1.22 @@ -509,10 +504,6 @@ 1.23 _recorded_non_young_free_cset_time_ms = time_ms; 1.24 } 1.25 1.26 - double predict_young_gc_eff() { 1.27 - return get_new_neg_prediction(_young_gc_eff_seq); 1.28 - } 1.29 - 1.30 double predict_survivor_regions_evac_time(); 1.31 1.32 void cset_regions_freed() { 1.33 @@ -522,20 +513,6 @@ 1.34 // also call it on any more surv rate groups 1.35 } 1.36 1.37 - void set_known_garbage_bytes(size_t known_garbage_bytes) { 1.38 - _known_garbage_bytes = known_garbage_bytes; 1.39 - size_t heap_bytes = _g1->capacity(); 1.40 - _known_garbage_ratio = (double) _known_garbage_bytes / (double) heap_bytes; 1.41 - } 1.42 - 1.43 - void decrease_known_garbage_bytes(size_t known_garbage_bytes) { 1.44 - guarantee( _known_garbage_bytes >= known_garbage_bytes, "invariant" ); 1.45 - 1.46 - _known_garbage_bytes -= known_garbage_bytes; 1.47 - size_t heap_bytes = _g1->capacity(); 1.48 - _known_garbage_ratio = (double) _known_garbage_bytes / (double) heap_bytes; 1.49 - } 1.50 - 1.51 G1MMUTracker* mmu_tracker() { 1.52 return _mmu_tracker; 1.53 } 1.54 @@ -1026,12 +1003,6 @@ 1.55 // exceeded the desired limit, return an amount to expand by. 1.56 size_t expansion_amount(); 1.57 1.58 -#ifndef PRODUCT 1.59 - // Check any appropriate marked bytes info, asserting false if 1.60 - // something's wrong, else returning "true". 1.61 - bool assertMarkedBytesDataOK(); 1.62 -#endif 1.63 - 1.64 // Print tracing information. 1.65 void print_tracing_info() const; 1.66 1.67 @@ -1074,19 +1045,6 @@ 1.68 return _young_gen_sizer->adaptive_young_list_length(); 1.69 } 1.70 1.71 - inline double get_gc_eff_factor() { 1.72 - double ratio = _known_garbage_ratio; 1.73 - 1.74 - double square = ratio * ratio; 1.75 - // square = square * square; 1.76 - double ret = square * 9.0 + 1.0; 1.77 -#if 0 1.78 - gclog_or_tty->print_cr("ratio = %1.2lf, ret = %1.2lf", ratio, ret); 1.79 -#endif // 0 1.80 - guarantee(0.0 <= ret && ret < 10.0, "invariant!"); 1.81 - return ret; 1.82 - } 1.83 - 1.84 private: 1.85 // 1.86 // Survivor regions policy.