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

Investigate "os::realign_memory" and the "alignment_hint" parameter for os::commit...()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 16
    • hotspot

      os::commit_memory() has an "alignment_hint" parameter which is, like the rest of the API, undocumented.

      Looking at the code closely, it just does something on Linux, where it is used as a very elaborate way to switch on use of TPH on committing memory.

      See also os::realign_memory(), which is empty on all platforms but Linux and on Linux it switches on TPH for the given area.

      Check if this whole coding can be simplified. Maybe hidden inside the Linux os layer instead of bleeding as API into shared code?

            stuefe Thomas Stuefe
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: