harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r453299 - in /incubator/harmony/enhanced/drlvm/trunk: src/test/harmony-1694/ src/test/harmony-1694/StressTest01.java vm/vmcore/include/version_svn_tag.h vm/vmcore/src/object/vm_arrays.cpp
Date Thu, 05 Oct 2006 17:48:15 GMT
Author: geirm
Date: Thu Oct  5 10:48:14 2006
New Revision: 453299

URL: http://svn.apache.org/viewvc?view=rev&rev=453299
Log:
HARMONY-1694

vm_multianewarray_recursive() reports outdated reference in some cases. Return value is not
enumerated.

Ubuntu 6 - smoke, c-unit and ~kernel, but did seemto have random failures


Added:
    incubator/harmony/enhanced/drlvm/trunk/src/test/harmony-1694/
    incubator/harmony/enhanced/drlvm/trunk/src/test/harmony-1694/StressTest01.java   (with
props)
Modified:
    incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/include/version_svn_tag.h
    incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/object/vm_arrays.cpp

Added: incubator/harmony/enhanced/drlvm/trunk/src/test/harmony-1694/StressTest01.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/src/test/harmony-1694/StressTest01.java?view=auto&rev=453299
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/src/test/harmony-1694/StressTest01.java (added)
+++ incubator/harmony/enhanced/drlvm/trunk/src/test/harmony-1694/StressTest01.java Thu Oct
 5 10:48:14 2006
@@ -0,0 +1,30 @@
+class StressTest01 {
+    public int test() {
+        Object arrayOfObjects[] = new Object[10000]; // array of objects
+
+        // padding memory
+        System.out.println("Padding memory...");           
+        int numObjects=0;
+        
+        try {
+            while (true) {
+                arrayOfObjects[numObjects] = new StressTest01Object1(); // padding memory
by big objects
+                numObjects++;
+            }
+        }
+        catch (OutOfMemoryError oome) {
+        }
+
+        System.out.println("Test passed");
+        return 104; // return pass
+    }
+ 
+    public static void main(String[] args) {
+        System.exit(new StressTest01().test());
+    }
+}
+ 
+/* big padding object */
+class StressTest01Object1 {
+    int testArray[][][] = new int[100][100][100];
+}

Propchange: incubator/harmony/enhanced/drlvm/trunk/src/test/harmony-1694/StressTest01.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/include/version_svn_tag.h
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/include/version_svn_tag.h?view=diff&rev=453299&r1=453298&r2=453299
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/include/version_svn_tag.h (original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/include/version_svn_tag.h Thu Oct  5
10:48:14 2006
@@ -18,6 +18,6 @@
 #ifndef _VERSION_SVN_TAG_
 #define _VERSION_SVN_TAG_
 
-#define VERSION_SVN_TAG  "452887"
+#define VERSION_SVN_TAG  "453287"
 
 #endif // _VERSION_SVN_TAG_

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/object/vm_arrays.cpp
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/object/vm_arrays.cpp?view=diff&rev=453299&r1=453298&r2=453299
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/object/vm_arrays.cpp (original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/object/vm_arrays.cpp Thu Oct  5 10:48:14
2006
@@ -374,7 +374,7 @@
             element = subarray;
             d--;
 
-            if (d == 0) return array;
+            if (d == 0) return obj[0]->object;
         }
     }
 } //vm_multianewarray_recursive



Mime
View raw message