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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 16
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:

      Description

      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?

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: