natVMDirectByteBufferImpl.cc: Renamed from java/nio/natDirectByteBufferImpl.cc.
authorGary Benson <gbenson@redhat.com>
Wed, 17 Jan 2007 17:02:48 +0000 (17:02 +0000)
committerGary Benson <gary@gcc.gnu.org>
Wed, 17 Jan 2007 17:02:48 +0000 (17:02 +0000)
2007-01-17  Gary Benson  <gbenson@redhat.com>

* java/nio/natVMDirectByteBufferImpl.cc:
Renamed from java/nio/natDirectByteBufferImpl.cc.
* Makefile.am: Reflect the above.
* Makefile.in: Rebuilt.

From-SVN: r120859

libjava/ChangeLog
libjava/Makefile.am
libjava/Makefile.in
libjava/java/nio/natDirectByteBufferImpl.cc [deleted file]
libjava/java/nio/natVMDirectByteBufferImpl.cc [new file with mode: 0644]

index e2ba835c48f44c9d5d957591c8efbab6f52e049c..64bdf4b93553646cb334a2fcce0b2b2381bccba3 100644 (file)
@@ -1,3 +1,10 @@
+2007-01-17  Gary Benson  <gbenson@redhat.com>
+
+       * java/nio/natVMDirectByteBufferImpl.cc:
+       Renamed from java/nio/natDirectByteBufferImpl.cc.
+       * Makefile.am: Reflect the above.
+       * Makefile.in: Rebuilt.
+       
 2007-01-17  Marco Trudel  <mtrudel@gmx.ch>
 
        * jvmti.cc (_Jv_JVMTI_GetAllThreads): Now static.  Use JNICALL.
index a8b2fffc255f1ceb89f27705abea6b9e7d834188..d95dc344638924c7891b43db0d8fe599f6c042eb 100644 (file)
@@ -871,7 +871,7 @@ java/net/natVMInetAddress.cc \
 java/net/natVMNetworkInterface.cc \
 java/net/natVMURLConnection.cc \
 java/nio/channels/natVMChannels.cc \
-java/nio/natDirectByteBufferImpl.cc \
+java/nio/natVMDirectByteBufferImpl.cc \
 java/security/natVMAccessController.cc \
 java/security/natVMAccessControlState.cc \
 java/text/natCollator.cc \
index 78013d50100260f8bf867ac6e6914748edd8a1ea..b27d080968883a9563cbf541ecfc72464e610207 100644 (file)
@@ -329,7 +329,7 @@ am__libgcj_la_SOURCES_DIST = prims.cc jni.cc jvmti.cc exception.cc \
        java/net/natVMNetworkInterface.cc \
        java/net/natVMURLConnection.cc \
        java/nio/channels/natVMChannels.cc \
-       java/nio/natDirectByteBufferImpl.cc \
+       java/nio/natVMDirectByteBufferImpl.cc \
        java/security/natVMAccessController.cc \
        java/security/natVMAccessControlState.cc \
        java/text/natCollator.cc java/util/natVMTimeZone.cc \
@@ -392,7 +392,7 @@ am__objects_2 = gnu/classpath/jdwp/natVMFrame.lo \
        java/net/natVMNetworkInterface.lo \
        java/net/natVMURLConnection.lo \
        java/nio/channels/natVMChannels.lo \
-       java/nio/natDirectByteBufferImpl.lo \
+       java/nio/natVMDirectByteBufferImpl.lo \
        java/security/natVMAccessController.lo \
        java/security/natVMAccessControlState.lo \
        java/text/natCollator.lo java/util/natVMTimeZone.lo \
@@ -7955,7 +7955,7 @@ java/net/natVMInetAddress.cc \
 java/net/natVMNetworkInterface.cc \
 java/net/natVMURLConnection.cc \
 java/nio/channels/natVMChannels.cc \
-java/nio/natDirectByteBufferImpl.cc \
+java/nio/natVMDirectByteBufferImpl.cc \
 java/security/natVMAccessController.cc \
 java/security/natVMAccessControlState.cc \
 java/text/natCollator.cc \
@@ -8513,7 +8513,7 @@ java/nio/$(am__dirstamp):
 java/nio/$(DEPDIR)/$(am__dirstamp):
        @$(mkdir_p) java/nio/$(DEPDIR)
        @: > java/nio/$(DEPDIR)/$(am__dirstamp)
-java/nio/natDirectByteBufferImpl.lo: java/nio/$(am__dirstamp) \
+java/nio/natVMDirectByteBufferImpl.lo: java/nio/$(am__dirstamp) \
        java/nio/$(DEPDIR)/$(am__dirstamp)
 java/security/$(am__dirstamp):
        @$(mkdir_p) java/security
@@ -8924,8 +8924,8 @@ mostlyclean-compile:
        -rm -f java/net/natVMURLConnection.lo
        -rm -f java/nio/channels/natVMChannels.$(OBJEXT)
        -rm -f java/nio/channels/natVMChannels.lo
-       -rm -f java/nio/natDirectByteBufferImpl.$(OBJEXT)
-       -rm -f java/nio/natDirectByteBufferImpl.lo
+       -rm -f java/nio/natVMDirectByteBufferImpl.$(OBJEXT)
+       -rm -f java/nio/natVMDirectByteBufferImpl.lo
        -rm -f java/security/natVMAccessControlState.$(OBJEXT)
        -rm -f java/security/natVMAccessControlState.lo
        -rm -f java/security/natVMAccessController.$(OBJEXT)
@@ -9063,7 +9063,7 @@ distclean-compile:
 @AMDEP_TRUE@@am__include@ @am__quote@java/net/$(DEPDIR)/natVMInetAddress.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@java/net/$(DEPDIR)/natVMNetworkInterface.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@java/net/$(DEPDIR)/natVMURLConnection.Plo@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@java/nio/$(DEPDIR)/natDirectByteBufferImpl.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@java/nio/$(DEPDIR)/natVMDirectByteBufferImpl.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@java/nio/channels/$(DEPDIR)/natVMChannels.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@java/security/$(DEPDIR)/natVMAccessControlState.Plo@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@java/security/$(DEPDIR)/natVMAccessController.Plo@am__quote@
diff --git a/libjava/java/nio/natDirectByteBufferImpl.cc b/libjava/java/nio/natDirectByteBufferImpl.cc
deleted file mode 100644 (file)
index 3119fde..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-// natDirectByteBufferImpl.cc
-
-/* Copyright (C) 2003, 2004  Free Software Foundation
-
-   This file is part of libgcj.
-
-This software is copyrighted work licensed under the terms of the
-Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
-details.  */
-
-#include <config.h>
-
-#include <gcj/cni.h>
-#include <jvm.h>
-
-#include <stdlib.h>
-
-#include <gnu/gcj/RawData.h>
-#include <java/nio/VMDirectByteBuffer.h>
-
-using gnu::gcj::RawData;
-
-RawData*
-java::nio::VMDirectByteBuffer::allocate (jint capacity)
-{
-  return reinterpret_cast<gnu::gcj::RawData*> (::malloc (capacity));
-}
-
-void
-java::nio::VMDirectByteBuffer::free (gnu::gcj::RawData* address)
-{
-  ::free (reinterpret_cast<void*> (address));
-}
-
-jbyte
-java::nio::VMDirectByteBuffer::get (RawData* address, jint index)
-{
-  jbyte* pointer = reinterpret_cast<jbyte*> (address) + index;
-  return *pointer;
-}
-
-void
-java::nio::VMDirectByteBuffer::get (RawData* address, jint index,
-                                   jbyteArray dst, jint offset, jint length)
-{
-  jbyte* src = reinterpret_cast<jbyte*> (address) + index;
-  memcpy (elements (dst) + offset, src, length);
-}
-
-void
-java::nio::VMDirectByteBuffer::put (gnu::gcj::RawData* address,
-                                   jint index, jbyte value)
-{
-  jbyte* pointer = reinterpret_cast<jbyte*> (address) + index;
-  *pointer = value;
-}
-
-RawData*
-java::nio::VMDirectByteBuffer::adjustAddress (RawData* address, jint offset)
-{
-  jbyte* start = reinterpret_cast<jbyte*> (address) + offset;
-  return reinterpret_cast<RawData*>(start);
-}
-
-void
-java::nio::VMDirectByteBuffer::shiftDown (RawData* address, jint dst_offset,
-                                         jint src_offset, jint count)
-{
-  jbyte* dst = reinterpret_cast<jbyte*> (address) + dst_offset;
-  jbyte* src = reinterpret_cast<jbyte*> (address) + src_offset;
-  ::memmove(dst, src, count);
-}
diff --git a/libjava/java/nio/natVMDirectByteBufferImpl.cc b/libjava/java/nio/natVMDirectByteBufferImpl.cc
new file mode 100644 (file)
index 0000000..3119fde
--- /dev/null
@@ -0,0 +1,72 @@
+// natDirectByteBufferImpl.cc
+
+/* Copyright (C) 2003, 2004  Free Software Foundation
+
+   This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License.  Please consult the file "LIBGCJ_LICENSE" for
+details.  */
+
+#include <config.h>
+
+#include <gcj/cni.h>
+#include <jvm.h>
+
+#include <stdlib.h>
+
+#include <gnu/gcj/RawData.h>
+#include <java/nio/VMDirectByteBuffer.h>
+
+using gnu::gcj::RawData;
+
+RawData*
+java::nio::VMDirectByteBuffer::allocate (jint capacity)
+{
+  return reinterpret_cast<gnu::gcj::RawData*> (::malloc (capacity));
+}
+
+void
+java::nio::VMDirectByteBuffer::free (gnu::gcj::RawData* address)
+{
+  ::free (reinterpret_cast<void*> (address));
+}
+
+jbyte
+java::nio::VMDirectByteBuffer::get (RawData* address, jint index)
+{
+  jbyte* pointer = reinterpret_cast<jbyte*> (address) + index;
+  return *pointer;
+}
+
+void
+java::nio::VMDirectByteBuffer::get (RawData* address, jint index,
+                                   jbyteArray dst, jint offset, jint length)
+{
+  jbyte* src = reinterpret_cast<jbyte*> (address) + index;
+  memcpy (elements (dst) + offset, src, length);
+}
+
+void
+java::nio::VMDirectByteBuffer::put (gnu::gcj::RawData* address,
+                                   jint index, jbyte value)
+{
+  jbyte* pointer = reinterpret_cast<jbyte*> (address) + index;
+  *pointer = value;
+}
+
+RawData*
+java::nio::VMDirectByteBuffer::adjustAddress (RawData* address, jint offset)
+{
+  jbyte* start = reinterpret_cast<jbyte*> (address) + offset;
+  return reinterpret_cast<RawData*>(start);
+}
+
+void
+java::nio::VMDirectByteBuffer::shiftDown (RawData* address, jint dst_offset,
+                                         jint src_offset, jint count)
+{
+  jbyte* dst = reinterpret_cast<jbyte*> (address) + dst_offset;
+  jbyte* src = reinterpret_cast<jbyte*> (address) + src_offset;
+  ::memmove(dst, src, count);
+}