VariableTable.java: Change longs to ints for argCnt and slots.
authorKyle Galloway <kgallowa@redhat.com>
Thu, 5 Apr 2007 00:00:45 +0000 (00:00 +0000)
committerKyle Galloway <kgallowa@gcc.gnu.org>
Thu, 5 Apr 2007 00:00:45 +0000 (00:00 +0000)
2007-04-04  Kyle Galloway  <kgallowa@redhat.com>

* classpath/gnu/classpath/jdwp/util/VariableTable.java: Change longs
to ints for argCnt and slots.
(write): Replace writeLong with writeInt for the above.

From-SVN: r123511

libjava/ChangeLog
libjava/classpath/gnu/classpath/jdwp/util/VariableTable.java
libjava/classpath/lib/gnu/classpath/jdwp/util/VariableTable.class
libjava/gnu/classpath/jdwp/util/VariableTable.h

index 09b7e07183e6ffe8cbcd7860741d4c3f597c4c69..3d0b9eca45a007e715a51ede1a855cd7b2c20b10 100644 (file)
@@ -1,3 +1,9 @@
+2007-04-04  Kyle Galloway  <kgallowa@redhat.com>
+
+       * classpath/gnu/classpath/jdwp/util/VariableTable.java: Change longs
+       to ints for argCnt and slots.
+       (write): Replace writeLong with writeInt for the above. 
+
 2007-04-03  Andrew Haley  <aph@redhat.com>
 
        * testsuite/libjava.lang/ProxyTest.java: New test.
index 22d8c7dd621d048dced9b1adc44f40d1eecb0844..f30c2158100c141fcf5ea3689035941f1ba86e4b 100644 (file)
@@ -50,9 +50,9 @@ import java.io.IOException;
 public class VariableTable
 {
 
-  private final long argCnt;
+  private final int argCnt;
 
-  private final long slots;
+  private final int slots;
 
   private final long[] lineCI;
 
@@ -95,8 +95,8 @@ public class VariableTable
    */
   public void write(DataOutputStream os) throws IOException
   {
-    os.writeLong(argCnt);
-    os.writeLong(slots);
+    os.writeInt(argCnt);
+    os.writeInt(slots);
     for (int i = 0; i < slots; i++)
       {
         os.writeLong(lineCI[i]);
index 7c653c3d6d36a547439a56452a1087a70d814727..0ba47cd0dc587a69d0981c983a7d3dad03d935e5 100644 (file)
Binary files a/libjava/classpath/lib/gnu/classpath/jdwp/util/VariableTable.class and b/libjava/classpath/lib/gnu/classpath/jdwp/util/VariableTable.class differ
index 05b0477fed7daf9848b3a1b4ad91bb2021a224a8..893348e4fad580da0f6a3a646c68ff912a4b7fb5 100644 (file)
@@ -33,8 +33,8 @@ public:
   VariableTable(jint, jint, JArray< jlong > *, JArray< ::java::lang::String * > *, JArray< ::java::lang::String * > *, JArray< jint > *, JArray< jint > *);
   virtual void write(::java::io::DataOutputStream *);
 private:
-  jlong __attribute__((aligned(__alignof__( ::java::lang::Object)))) argCnt;
-  jlong slots;
+  jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) argCnt;
+  jint slots;
   JArray< jlong > * lineCI;
   JArray< jint > * slot;
   JArray< jint > * lengths;