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

Record page size used for underlying mapping in ReservedSpace

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 17
    • None
    • hotspot
    • None
    • gc
    • b21

    Description

      Knowing what page size was used for a mapping can sometimes be needed. Either for logging or to figure out a suitable chunk-size when pretouching memory. Currently we have a helper function `ReservedSpace::actual_reserved_page_size()` that looks at the `ReservedSpace` and tries to figure out what page size was used.

      As long as only large page size can be used in the VM this works well. But if we enable the JVM to use more than one large page size, (see JDK-8256155) this helper will not be enough.

      A better solution would be to extend the reservation APIs to pass back the page size used for a mapping and then record this in the ReservedSpace.

      Attachments

        Issue Links

          Activity

            People

              sjohanss Stefan Johansson
              sjohanss Stefan Johansson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: