src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/hotspot/Test6186134.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/hotspot/Test6186134.java

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/hotspot/Test6186134.java

Print this page

        

*** 22,40 **** */ package org.graalvm.compiler.jtt.hotspot; import java.util.ArrayList; - import org.junit.Before; import org.junit.Test; - import org.graalvm.compiler.core.common.util.ArraySet; import org.graalvm.compiler.jtt.JTTTest; // @formatter:off public class Test6186134 extends JTTTest { public static class TestClass { int num = 0; public TestClass(int n) { --- 22,43 ---- */ package org.graalvm.compiler.jtt.hotspot; import java.util.ArrayList; import org.junit.Test; import org.graalvm.compiler.jtt.JTTTest; // @formatter:off public class Test6186134 extends JTTTest { + @SuppressWarnings("serial") + public static final class MyArrayList<E> extends ArrayList<E> { + + } + public static class TestClass { int num = 0; public TestClass(int n) {
*** 43,54 **** public boolean more() { return num-- > 0; } ! public ArrayList<?> test1() { ! ArrayList<Object> res = new ArrayList<>(); int maxResults = Integer.MAX_VALUE; int n = 0; boolean more = more(); while ((n++ < maxResults) && more) { res.add(new Object()); --- 46,57 ---- public boolean more() { return num-- > 0; } ! public MyArrayList<?> test1() { ! MyArrayList<Object> res = new MyArrayList<>(); int maxResults = Integer.MAX_VALUE; int n = 0; boolean more = more(); while ((n++ < maxResults) && more) { res.add(new Object());
*** 68,83 **** } } 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); } --- 71,80 ----
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/hotspot/Test6186134.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File