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

G1: Incorrect use of G1LastPLABAverageOccupancy

XMLWordPrintable

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

      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
      ```

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

              Created:
              Updated:
              Resolved: