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

Shenandoah: adaptive heuristics should account evac reserve in free target

    XMLWordPrintable

Details

    • gc
    • b18

    Backports

      Description

        Current adaptive/traversal heuristics targets the amount of free space after the end of the cycle, as the percent driven by ShenandoahMinFreeThreshold. But it compares against actual_free from the cset selection code that counts all free regions, including those that would get into the evac reserve. This makes free space target undershoot the free space after collection, when evac reserve takes its cut. We need to account for that.

        Note that on all other paths, we are comparing ShenandoahMinFreeThreshold with free_set()->available(), that excludes evac-reserve already.

        Attachments

          Issue Links

            Activity

              People

                shade Aleksey Shipilev
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: