[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: fix warnings in NIO JNI
From: |
Casey Marshall |
Subject: |
[cp-patches] FYI: fix warnings in NIO JNI |
Date: |
Sat, 30 Jul 2005 13:39:13 -0700 |
This patch fixes the warnings I introduced into the java-nio JNI
library with my recent changes, and fixes the crash I was seeing on
OS X 10.4.
2005-07-30 Casey Marshall <address@hidden>
* native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c
(Java_gnu_java_nio_channels_FileChannelImpl_mapImpl):
eliminate various compiler warnings; mark 'buffer' as 'volatile;'
throw an exception if we can't get a constructor method ID.
* native/jni/java-nio/java_nio_MappedByteBufferImpl.c:
include 'stdlib.h.'
(get_raw_values): eliminate compiler warnings.
(Java_java_nio_MappedByteBufferImpl_isLoadedImpl): likewise.
* native/jni/java-nio/java_nio_VMDirectByteBuffer.c
(Java_java_nio_VMDirectByteBuffer_put__Lgnu_classpath_RawData_2I_3BII):
eliminate compiler warning.
nio.patch.txt
Description: Text document
- [cp-patches] FYI: fix warnings in NIO JNI,
Casey Marshall <=