diff graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/ArrayCopy04.java @ 5744:51cee50d1d11

ensure System.arrycopy is resolved in JTT tests that use it
author Doug Simon <doug.simon@oracle.com>
date Tue, 03 Jul 2012 13:02:24 +0200
parents 02f76c2ee0f0
children 17d2c3b72762
line wrap: on
line diff
--- a/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/ArrayCopy04.java	Tue Jul 03 10:31:58 2012 +0200
+++ b/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/ArrayCopy04.java	Tue Jul 03 13:02:24 2012 +0200
@@ -31,6 +31,10 @@
 
     public static byte[] array = new byte[]{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
     public static byte[] array0 = new byte[]{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
+    static {
+        // Ensure arraycopy is resolved
+        System.arraycopy(array, 0, array, 0, array.length);
+    }
 
     @Before
     public void setUp() {