Mercurial > hg > graal-compiler
changeset 22827:eb99bf98f076
Test6186134: manually initialize ArraySet.
author | Josef Eisl <josef.eisl@jku.at> |
---|---|
date | Tue, 13 Oct 2015 11:41:53 +0200 |
parents | b3fdc3758e07 |
children | 259702025588 |
files | graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/hotspot/Test6186134.java |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);