equal
deleted
inserted
replaced
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 8072016 |
26 * @bug 8072016 |
27 * @summary Infinite deoptimization/recompilation cycles in case of arraycopy with tightly coupled allocation |
27 * @summary Infinite deoptimization/recompilation cycles in case of arraycopy with tightly coupled allocation |
28 * @library /testlibrary /test/lib /compiler/whitebox |
28 * @library /testlibrary /test/lib /compiler/whitebox / |
29 * @modules java.base/sun.misc |
29 * @modules java.base/sun.misc |
30 * java.management |
30 * java.management |
31 * @build TestArrayCopyNoInitDeopt |
31 * @build TestArrayCopyNoInitDeopt |
32 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
32 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
33 * @run main ClassFileInstaller jdk.test.lib.Platform |
33 * @run main ClassFileInstaller jdk.test.lib.Platform |
40 |
40 |
41 import sun.hotspot.WhiteBox; |
41 import sun.hotspot.WhiteBox; |
42 import sun.hotspot.code.NMethod; |
42 import sun.hotspot.code.NMethod; |
43 import jdk.test.lib.Platform; |
43 import jdk.test.lib.Platform; |
44 import java.lang.reflect.*; |
44 import java.lang.reflect.*; |
|
45 import compiler.whitebox.CompilerWhiteBoxTest; |
45 |
46 |
46 public class TestArrayCopyNoInitDeopt { |
47 public class TestArrayCopyNoInitDeopt { |
47 |
48 |
48 public static int[] m1(Object src) { |
49 public static int[] m1(Object src) { |
49 if (src == null) return null; |
50 if (src == null) return null; |