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

Mistyped function name that disabled UseLargePages on Windows

XMLWordPrintable

    • b01
    • b06
    • generic
    • windows_2000

        Hotspot dynamically loads advapi32.dll and discovers LookupPrivilegeValue function for enabling UseLargePages commandline option. However, LookupPrivilegeValue has two versions, LookupPrivilegeValueA and LookupPrivilegeValueW. For Hotspot, it should use LookupPrivilegeValueA version.

        6u27 missed "A" at the end of function name, that caused function can not be allocated, which will disable "UseLargePages" option.

        This can be the root that causes 9% performance regression on SPECjbb2005, discovered by Intel.
        Be aware, UseLargePages commandline option requires a special security permission on local machine, please refer to comments in os_windows.cpp for how to set it up.

              zgu Zhengyu Gu
              zgu Zhengyu Gu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: