[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] [Patch] support for direct buffers
From: |
Michael Koch |
Subject: |
[cp-patches] [Patch] support for direct buffers |
Date: |
Thu, 18 Nov 2004 10:40:38 +0100 |
User-agent: |
Mutt/1.5.6+20040722i |
Hi list,
I have finally finished support for direct byte buffers in GNU
classpath. The attached patch moves the native methods to a new VM class
called VMDirectByteBuffer and implements the native methods.
To store pointers I use two different classes for 32-bit and 64-bit
archs to make pointer conversion more easy. This trick was stollen from
libxmlj. Thanks to Chris Burdess for pointing me to it.
The patch was tested on x86. I have no 64-bit arch to test this. I have
written some mauve testcases for this but they are not commited yet.
What do people think about this patch ?
Michael
2004-11-18 Michael Koch <address@hidden>
* gnu/classpath/RawData.java: Made abstract.
* gnu/classpath/RawData32.java,
gnu/classpath/RawData64.java: New files.
* include/Makefile.am:
Don't generate java_nio_DirectByteBufferImpl.h anymore
and generate java_nio_VMDirectByteBuffer.h now.
* java/nio/DirectByteBufferImpl.java:
Moved native methods to VMDirectByteBuffer.
* java/nio/MappedByteBufferImpl.java:
Use methods from VMDirectBteBuffer.
* native/jni/java-nio/Makefile.am:
Removed java_nio_DirectByteBufferImpl.c
and added java_nio_VMDirectByteBuffer.c
* include/java_nio_DirectByteBufferImpl.h,
native/jni/java-nio/java_nio_DirectByteBufferImpl.c:
Removed.
* include/java_nio_VMDirectByteBuffer.h,
* native/jni/java-nio/java_nio_VMDirectByteBuffer.c:
New files.
nio.diff
Description: Text document
- [cp-patches] [Patch] support for direct buffers,
Michael Koch <=
- RE: [cp-patches] [Patch] support for direct buffers, Jeroen Frijters, 2004/11/18
- RE: [cp-patches] [Patch] support for direct buffers, Jeroen Frijters, 2004/11/18
- RE: [cp-patches] [Patch] support for direct buffers, Jeroen Frijters, 2004/11/18
- RE: [cp-patches] [Patch] support for direct buffers, Jeroen Frijters, 2004/11/18
- RE: [cp-patches] [Patch] support for direct buffers, Jeroen Frijters, 2004/11/18