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
--- 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;
}