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

Enable G1 to use large pages on Windows when region size is larger than 2m

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b23

      Description

      The code handling large pages reservation on Windows currently fall back to using normal pages if the alignment is larger than the large page size. For G1 this is a problem if the region size is larger than 2m (on x64 where the large page size is 2m). In those cases the Java heap will not be backed with large pages.

      We should change reserve_memory_special on Windows to work similar to Linux where we always ensure the alignment, so that large pages can be used even it the alignment is larger than the page size.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sjohanss Stefan Johansson
              Reporter:
              sjohanss Stefan Johansson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: