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

Adjust number of stack guard pages on systems with large memory page size

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: hs25
    • Fix Version/s: hs25
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b31
    • OS:
      linux
    • Verification:
      Not verified

      Backports

        Description

        On a non-typical Linux system configuration with large page size (e.g. 64KB) significant amount of virtual memory is wasted to multiple guard pages when in fact that can be reduced to a single page per Red/Yellow/Shadow categories.
        In some edge cases a minimal stack requirement is calculated higher than actual stack size specified by ThreadStackSize parameter causing VM to abort unless stack size is overwritten via -Xss option.

        A currently suggested patch adjusts amount of guard pages to a single memory page each along with minimal stack size unless explicitly overwritten in command line.

        Currently we are aware of the problem on some Linux platforms, therefore the change is specific to that OS only (Solaris carries a similar approach already).


          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vladidan Vladimir Danushevsky (Inactive)
                  Reporter:
                  vladidan Vladimir Danushevsky (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: