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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • tbd
    • Affects Version/s: 16
    • Component/s: 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?

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

              Created:
              Updated:
              Resolved: