RFR: JDK-8037909 - JNI warnings in jdk/src/windows/native/java/nio/MappedByteBuffer.c

Chris Hegarty chris.hegarty at oracle.com
Mon Nov 10 19:10:43 UTC 2014


On 10 Nov 2014, at 17:37, Mark Sheppard <mark.sheppard at oracle.com> wrote:

> Hi
> please oblige and review the follow change

Looks find to me Mark.

-Chris.

> diff -r c0d1026bff6f src/java.base/windows/native/libnio/MappedByteBuffer.c
> --- a/src/java.base/windows/native/libnio/MappedByteBuffer.c    Tue Nov 04 15:10:38 2014 +0000
> +++ b/src/java.base/windows/native/libnio/MappedByteBuffer.c    Mon Nov 10 17:32:51 2014 +0000
> @@ -86,6 +86,7 @@
>             if (clazz == NULL)
>                 return; // exception thrown
>             handle_fdID = (*env)->GetFieldID(env, clazz, "handle", "J");
> +            CHECK_NULL(handle_fdID);
>         }
>         h = jlong_to_ptr((*env)->GetLongField(env, fdo, handle_fdID));
>         result = FlushFileBuffers(h);
> 
> to address the parfait issue
> 
> https://bugs.openjdk.java.net/browse/JDK-8037909
> 
> regards
> Mark




More information about the core-libs-dev mailing list