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

G1: Incorrect use of G1LastPLABAverageOccupancy

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 22
    • 22
    • hotspot
    • gc
    • b15

    Description

      The number of plab refills should be `(100-G1LastPLABAverageOccupancy)/TargetPLABWastePct`, instead of `G1LastPLABAverageOccupancy/TargetPLABWastePct`.

      Based on the comment in G1EvacStats::compute_desired_plab_size:
      ```
         total-alloc * target-waste = plab-size * (100 - occupancy)
      => #plab = #refills = total-alloc / plab-size = (100 - occupancy) / target-waste
      ```

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: