changeset 1279:515916374161

2008-12-17 Gary Benson <gbenson@redhat.com> * ports/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp (_Copy_conjoint_jshorts_atomic): Implemented.
author Gary Benson <gbenson@redhat.com>
date Wed, 17 Dec 2008 07:55:15 -0500
parents b95615866532
children 30c77d225ff7
files ChangeLog ports/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
diffstat 2 files changed, 17 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Dec 17 10:03:26 2008 +0100
+++ b/ChangeLog	Wed Dec 17 07:55:15 2008 -0500
@@ -1,3 +1,8 @@
+2008-12-17  Gary Benson  <gbenson@redhat.com>
+
+	* ports/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp
+	(_Copy_conjoint_jshorts_atomic): Implemented.
+
 2008-12-17  Matthias Klose  <doko@ubuntu.com>
 
 	* patches/icedtea-zero.patch: Update for PARISC.
--- a/ports/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp	Wed Dec 17 10:03:26 2008 +0100
+++ b/ports/hotspot/src/os_cpu/linux_zero/vm/os_linux_zero.cpp	Wed Dec 17 07:55:15 2008 -0500
@@ -388,7 +388,18 @@
 
   void _Copy_conjoint_jshorts_atomic(jshort* from, jshort* to, size_t count)
   {
-    Unimplemented();
+    if (from > to) {
+      jshort *end = from + count;
+      while (from < end)
+        *(to++) = *(from++);
+    }
+    else if (from < to) {
+      jshort *end = from;
+      from += count - 1;
+      to   += count - 1;
+      while (from >= end)
+        *(to--) = *(from--);
+    }
   }
   void _Copy_conjoint_jints_atomic(jint* from, jint* to, size_t count)
   {