Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8318713

G1: Use more accurate age in predict_eden_copy_time_ms

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • 22
    • hotspot
    • gc
    • b21

      The arg of `G1SurvRateGroup::accum_surv_rate_pred` means the max age. In `G1Policy::predict_eden_copy_time_ms`, it should be called with `#eden-regions - 1` not `#eden-regions`, since age starts from 0.

      (Using a larger value can result into more conservative estimates, e.g. more bytes to be evacuated during young-gc.)

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: