8272973: Incorrect compile command used by TestIllegalArrayCopyBeforeInfiniteLoop

Reviewed-by: chagedorn, jiefu, neliasso
This commit is contained in:
Tobias Hartmann 2021-08-26 08:34:46 +00:00
parent 49b2789a49
commit 9166ba37b6

View File

@ -27,7 +27,7 @@
* @requires vm.compiler2.enabled * @requires vm.compiler2.enabled
* @summary ArrayCopy with negative index before infinite loop * @summary ArrayCopy with negative index before infinite loop
* @run main/othervm -Xbatch -XX:-TieredCompilation * @run main/othervm -Xbatch -XX:-TieredCompilation
* -XX:CompileCommand=compileonly,"*TestIllegalArrayCopyBeforeInfiniteLoop::foo" * -XX:CompileCommand=compileonly,compiler.arraycopy.TestIllegalArrayCopyBeforeInfiniteLoop::foo
* compiler.arraycopy.TestIllegalArrayCopyBeforeInfiniteLoop * compiler.arraycopy.TestIllegalArrayCopyBeforeInfiniteLoop
*/ */
@ -38,7 +38,7 @@ import java.util.Arrays;
public class TestIllegalArrayCopyBeforeInfiniteLoop { public class TestIllegalArrayCopyBeforeInfiniteLoop {
private static char src[] = new char[10]; private static char src[] = new char[10];
private static int count = 0; private static int count = 0;
private static final int iter = 10_000; private static final int iter = 20_000;
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
for (int i = 0; i < iter; ++i) { for (int i = 0; i < iter; ++i) {