# HG changeset patch # User Doug Simon # Date 1341313344 -7200 # Node ID 51cee50d1d114cc6fd062a14610f97f198c9cd2e # Parent e17ab95e06aadf02139ce42fd88c536d79f17d39 ensure System.arrycopy is resolved in JTT tests that use it diff -r e17ab95e06aa -r 51cee50d1d11 graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/ArrayCopy01.java --- a/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/ArrayCopy01.java Tue Jul 03 10:31:58 2012 +0200 +++ b/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/ArrayCopy01.java Tue Jul 03 13:02:24 2012 +0200 @@ -31,6 +31,10 @@ public static Object[] src = new Object[]{null, null}; public static Object[] dest = new Object[]{null, null}; + static { + // Ensure arraycopy is resolved + System.arraycopy(src, 0, src, 0, src.length); + } public static int test(int srcPos, int destPos, int length) { System.arraycopy(src, srcPos, dest, destPos, length); diff -r e17ab95e06aa -r 51cee50d1d11 graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/ArrayCopy02.java --- a/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/ArrayCopy02.java Tue Jul 03 10:31:58 2012 +0200 +++ b/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/ArrayCopy02.java Tue Jul 03 13:02:24 2012 +0200 @@ -32,6 +32,10 @@ public static int[] src = new int[]{0, 1, 2, 3, 4, 5}; public static int[] dest0 = new int[]{5, 4, 3, 2, 1, 0}; public static int[] dest = new int[]{5, 4, 3, 2, 1, 0}; + static { + // Ensure arraycopy is resolved + System.arraycopy(src, 0, src, 0, src.length); + } @Before public void setUp() { diff -r e17ab95e06aa -r 51cee50d1d11 graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/ArrayCopy03.java --- a/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/ArrayCopy03.java Tue Jul 03 10:31:58 2012 +0200 +++ b/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/ArrayCopy03.java Tue Jul 03 13:02:24 2012 +0200 @@ -32,6 +32,10 @@ public static byte[] src = new byte[]{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; public static byte[] dest0 = new byte[]{10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0}; public static byte[] dest = new byte[]{10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0}; + static { + // Ensure arraycopy is resolved + System.arraycopy(src, 0, src, 0, src.length); + } @Before public void setUp() { diff -r e17ab95e06aa -r 51cee50d1d11 graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/ArrayCopy04.java --- 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() {