RFR: JDK-8076557: The specified procedure could not be found in management.dll
Magnus Ihse Bursie
magnus.ihse.bursie at oracle.com
Wed Apr 8 06:39:46 UTC 2015
Looks good to me.
/Magnus
> 7 apr 2015 kl. 17:21 skrev Erik Joelsson <erik.joelsson at oracle.com>:
>
> (corrected subject)
>
>> On 2015-04-07 17:15, Erik Joelsson wrote:
>> Hello,
>>
>> When upgrading the toolchain to VS2013, management.dll stopped working on certain Windows hosts. I've identified this to be related to the call to GetProcessMemoryInfo. By adding -DPSAPI_VERSION=1 to CFLAGS, the problem goes away.
>>
>> Bug: https://bugs.openjdk.java.net/browse/JDK-8076557
>> Patch inline:
>>
>> diff -r 85380cfe4f0f make/lib/Lib-java.management.gmk
>> --- a/make/lib/Lib-java.management.gmk Tue Apr 07 10:33:08 2015 +0100
>> +++ b/make/lib/Lib-java.management.gmk Tue Apr 07 17:11:29 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)
>>
>>
>> /Erik
>
More information about the build-dev
mailing list