8076557: The specified procedure could not be found in management.dll
authorerikj
Wed, 08 Apr 2015 10:37:54 +0200
changeset 29817 f2832da6a04a
parent 29816 43ad6bf3975b
child 29818 7ca0a63012d2
8076557: The specified procedure could not be found in management.dll Reviewed-by: tbell, ihse, sla
jdk/make/lib/Lib-java.management.gmk
--- a/jdk/make/lib/Lib-java.management.gmk	Tue Apr 07 10:33:08 2015 +0100
+++ b/jdk/make/lib/Lib-java.management.gmk	Wed Apr 08 10:37:54 2015 +0200
@@ -38,6 +38,11 @@
     $(LIBJAVA_HEADER_FLAGS) \
     #
 
+# In (at least) VS2013 and later, -DPSAPI_VERSION=1 is needed to generate
+# a binary that is compatible with windows versions older than 7/2008R2.
+# See MSDN documentation for GetProcessMemoryInfo for more information.
+BUILD_LIBMANAGEMENT_CFLAGS += -DPSAPI_VERSION=1
+
 BUILD_LIBMANAGEMENT_EXCLUDES :=
 
 ifneq ($(OPENJDK_TARGET_OS), solaris)