src/share/vm/gc_implementation/shared/gcUtil.cpp

changeset 1580
e018e6884bd8
parent 435
a61af66fc99e
child 1907
c18cbe5936b8
     1.1 --- a/src/share/vm/gc_implementation/shared/gcUtil.cpp	Wed Dec 16 15:12:51 2009 -0800
     1.2 +++ b/src/share/vm/gc_implementation/shared/gcUtil.cpp	Wed Dec 23 09:23:54 2009 -0800
     1.3 @@ -52,11 +52,35 @@
     1.4    _last_sample = new_sample;
     1.5  }
     1.6  
     1.7 +void AdaptiveWeightedAverage::print() const {
     1.8 +  print_on(tty);
     1.9 +}
    1.10 +
    1.11 +void AdaptiveWeightedAverage::print_on(outputStream* st) const {
    1.12 +  guarantee(false, "NYI");
    1.13 +}
    1.14 +
    1.15 +void AdaptivePaddedAverage::print() const {
    1.16 +  print_on(tty);
    1.17 +}
    1.18 +
    1.19 +void AdaptivePaddedAverage::print_on(outputStream* st) const {
    1.20 +  guarantee(false, "NYI");
    1.21 +}
    1.22 +
    1.23 +void AdaptivePaddedNoZeroDevAverage::print() const {
    1.24 +  print_on(tty);
    1.25 +}
    1.26 +
    1.27 +void AdaptivePaddedNoZeroDevAverage::print_on(outputStream* st) const {
    1.28 +  guarantee(false, "NYI");
    1.29 +}
    1.30 +
    1.31  void AdaptivePaddedAverage::sample(float new_sample) {
    1.32 -  // Compute our parent classes sample information
    1.33 +  // Compute new adaptive weighted average based on new sample.
    1.34    AdaptiveWeightedAverage::sample(new_sample);
    1.35  
    1.36 -  // Now compute the deviation and the new padded sample
    1.37 +  // Now update the deviation and the padded average.
    1.38    float new_avg = average();
    1.39    float new_dev = compute_adaptive_average(fabsd(new_sample - new_avg),
    1.40                                             deviation());

mercurial