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

Shenandoah: adaptive heuristics should account evac reserve in free target

XMLWordPrintable

    • gc
    • b18

        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.

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

                Created:
                Updated:
                Resolved: