< prev index next >
test/compiler/arraycopy/TestArrayCopyNoInitDeopt.java
Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke
*** 26,49 ****
* @bug 8072016
* @summary Infinite deoptimization/recompilation cycles in case of arraycopy with tightly coupled allocation
* @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc
* java.management
! * @build TestArrayCopyNoInitDeopt
! * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* jdk.test.lib.Platform
* @run main/othervm -Xmixed -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:TypeProfileLevel=020
! * TestArrayCopyNoInitDeopt
*/
! import sun.hotspot.WhiteBox;
! import sun.hotspot.code.NMethod;
! import jdk.test.lib.Platform;
! import java.lang.reflect.*;
import compiler.whitebox.CompilerWhiteBoxTest;
public class TestArrayCopyNoInitDeopt {
public static int[] m1(Object src) {
if (src == null) return null;
int[] dest = new int[10];
--- 26,52 ----
* @bug 8072016
* @summary Infinite deoptimization/recompilation cycles in case of arraycopy with tightly coupled allocation
* @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc
* java.management
! *
! * @build compiler.arraycopy.TestArrayCopyNoInitDeopt
! * @run driver ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission
* jdk.test.lib.Platform
* @run main/othervm -Xmixed -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:TypeProfileLevel=020
! * compiler.arraycopy.TestArrayCopyNoInitDeopt
*/
! package compiler.arraycopy;
!
import compiler.whitebox.CompilerWhiteBoxTest;
+ import jdk.test.lib.Platform;
+ import sun.hotspot.WhiteBox;
+ import java.lang.reflect.Method;
+
public class TestArrayCopyNoInitDeopt {
public static int[] m1(Object src) {
if (src == null) return null;
int[] dest = new int[10];
< prev index next >