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

Using AlwaysPreTouch does not always touch all pages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • gc
    • b120

      While fixing JDK-8067469 we found out that os::pretouch_memory() is not always called with page aligned end addresses.

      This results in that method (and the code that has previously been used) to not touch the page that contains end-address if it is not page aligned. This may have minor performance impact.

      Since this method is only used after committing new space for that new space, it might be interesting to align the addresses (and the sizes when passing the commit request to the OS).

      E.g. in VirtualSpace::expand_by().

            stefank Stefan Karlsson
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: