G1: Incorrect use of G1LastPLABAverageOccupancy

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 22
    • Affects Version/s: 22
    • Component/s: 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
      ```

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

              Created:
              Updated:
              Resolved: