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

Shenandoah: AlwaysPreTouch should not disable heap resizing or uncommits

    XMLWordPrintable

Details

    • gc
    • b25

    Backports

      Description

        At present, enabling -XX:+AlwaysPreTouch implicitly disables uncommit and sets the heap size to Xmx. This is not coherent with the rest of OpenJDK garbage collectors that only pretouch when the actual commit happens. Shenandoah should do the same.

        It would still be recommended to set -Xmx == -Xms for AlwaysPreTouch to work without excess latencies.

        Current code makes JDK-8245720 logging confused: initial/min heap size would be reported from -Xms, not from the values that AlwaysPreTouch block adjusted.

        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: