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

os::commit_memory on Solaris uses aligment_hint as page size

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b33
    • CPU:
      sparc
    • OS:
      solaris

      Backports

        Description

        os::commit_memory takes a size_t `alignment_hint` as parameter. This parameter is used differently on different operating systems: it is ignored on all operating system except for Solaris. For Solaris, the hint is used for selecting the large page size. In a special case, the hint is interpreted as the *exact* page size.

        This problem had previously been hidden because due to various alignments of heap sizes and generation sizes always made sure that we ended up with a alignment_hint of 4 MB by default, which also happens to be a valid page size.

        The bug can be triggered by running:
        java -Xms32m -Xmx128m -XX:LargePageSizeInBytes=256m -version

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ehelin Erik Helin
                  Reporter:
                  ehelin Erik Helin
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: