7065535: Mistyped function name that disabled UseLargePages on Windows
authorzgu
Tue, 12 Jul 2011 21:13:53 -0400
changeset 10247 d875b714a43a
parent 10246 adee0cf4c981
child 10248 62296fcbd7cb
7065535: Mistyped function name that disabled UseLargePages on Windows Summary: Missing suffix "A" of Windows API LookupPrivilegeValue failed finding function pointer, caused VM to disable UseLargePages option Reviewed-by: coleenp, phh
hotspot/src/os/windows/vm/os_windows.cpp
--- a/hotspot/src/os/windows/vm/os_windows.cpp	Fri Apr 15 09:34:43 2011 -0400
+++ b/hotspot/src/os/windows/vm/os_windows.cpp	Tue Jul 12 21:13:53 2011 -0400
@@ -5079,7 +5079,7 @@
       _OpenProcessToken = (OpenProcessToken_Fn)::GetProcAddress(handle,
         "OpenProcessToken");
       _LookupPrivilegeValue = (LookupPrivilegeValue_Fn)::GetProcAddress(handle,
-        "LookupPrivilegeValue");
+        "LookupPrivilegeValueA");
     }
     initialized = TRUE;
   }