# HG changeset patch # User Josef Eisl # Date 1444729313 -7200 # Node ID eb99bf98f0763bc163014b8af2752d3d530edc44 # Parent b3fdc3758e0724fb37f5630cee266ceb1deac0b5 Test6186134: manually initialize ArraySet. diff -r b3fdc3758e07 -r eb99bf98f076 graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/hotspot/Test6186134.java --- a/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/hotspot/Test6186134.java Tue Oct 13 11:24:41 2015 +0200 +++ b/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/hotspot/Test6186134.java Tue Oct 13 11:41:53 2015 +0200 @@ -24,8 +24,10 @@ import java.util.ArrayList; +import org.junit.Before; import org.junit.Test; +import com.oracle.graal.compiler.common.util.ArraySet; import com.oracle.graal.jtt.JTTTest; // @formatter:off @@ -68,6 +70,12 @@ return 0; } + @Before + public void setUp() { + /* Ensure that ArrayList is _not_ a leaf class (otherwise code installation may fail due to a failed leaf type dependency). */ + UNSAFE.ensureClassInitialized(ArraySet.class); + } + @Test public void run0() throws Throwable { runTest("test", 100);