summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorCasey Marshall <csm@gnu.org>2005-07-24 03:35:57 +0000
committerCasey Marshall <csm@gnu.org>2005-07-24 03:35:57 +0000
commiteac254351e1abd8a45849cd254fe93e7f3a4ee9e (patch)
treec239770ce9b501596af8790d42da36861518368b /vm
parentfd6539ec17263ffc5351af3d8b00b3279f2cc38d (diff)
downloadclasspath-eac254351e1abd8a45849cd254fe93e7f3a4ee9e.tar.gz
2003-07-23 Casey Marshall <csm@gnu.org>
* configure.ac (AC_CHECK_HEADERS): add 'sys/mman.h'. (AC_CHECK_FUNCS): add mmap and related functions. * include/java_nio_VMDirectByteBuffer.h: regenerated. * java/nio/DirectByteBufferImpl.java (put): new method. * native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c (ALIGN_DOWN): new macro. (ALIGN_UP): new macro. (Java_gnu_java_nio_channels_FileChannelImpl_mapImpl): implemented. * native/jni/java-nio/java_nio_MappedByteBufferImpl.c: updated copyright years. (ALIGN_DOWN): new macro. (ALIGN_UP): new macro. (get_pagesize): new function. (get_raw_values): new function. (Java_java_nio_MappedByteBufferImpl_unmapImpl): implemented. (Java_java_nio_MappedByteBufferImpl_isLoadedImpl): implemented. (Java_java_nio_MappedByteBufferImpl_loadImpl): implemented. (Java_java_nio_MappedByteBufferImpl_forceImpl): implemented. * native/jni/java-nio/java_nio_VMDirectByteBuffer.c (Java_java_nio_VMDirectByteBuffer_put): renamed to 'Java_java_nio_VMDirectByteBuffer_put__Lgnu_classpath_RawData_2IB.' (Java_java_nio_VMDirectByteBuffer_get__Lgnu_classpath_RawData_2I_3BII): call 'ReleaseByteArrayElements' on the source byte array elements. (Java_java_nio_VMDirectByteBuffer_put__Lgnu_classpath_RawData_2I_3BII): new method. * vm/reference/java/nio/VMDirectByteBuffer.java (put): new method.
Diffstat (limited to 'vm')
-rw-r--r--vm/reference/java/nio/VMDirectByteBuffer.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/vm/reference/java/nio/VMDirectByteBuffer.java b/vm/reference/java/nio/VMDirectByteBuffer.java
index e42f50381..480e6d10b 100644
--- a/vm/reference/java/nio/VMDirectByteBuffer.java
+++ b/vm/reference/java/nio/VMDirectByteBuffer.java
@@ -1,4 +1,4 @@
-/* VMDirectByteBuffer.java --
+/* VMDirectByteBuffer.java --
Copyright (C) 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -55,12 +55,13 @@ final class VMDirectByteBuffer
}
private static native void init();
-
+
static native RawData allocate (int capacity);
static native void free(RawData address);
static native byte get(RawData address, int index);
static native void get(RawData address, int index, byte[] dst, int offset, int length);
static native void put(RawData address, int index, byte value);
+ static native void put(RawData address, int index, byte[] src, int offset, int length);
static native RawData adjustAddress(RawData address, int offset);
static native void shiftDown(RawData address, int dst_offset, int src_offset, int count);
}