< prev index next >

test/gc/shenandoah/compiler/TestC1VectorizedMismatch.java

Print this page
rev 10790 : [backport] Prefix Shenandoah tests with "Test"

*** 1,7 **** /* ! * Copyright (c) 2016 Red Hat, Inc. and/or its affiliates. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * --- 1,7 ---- /* ! * Copyright (c) 2016, 2018, Red Hat, Inc. All rights reserved. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. *
*** 19,39 **** * or visit www.oracle.com if you need additional information or have any * questions. * */ ! /* @test * @summary test C1 vectorized mismatch intrinsic ! * @run main/othervm -XX:TieredStopAtLevel=1 -XX:+UseShenandoahGC -XX:+UnlockDiagnosticVMOptions -XX:ShenandoahGCHeuristics=aggressive C1VectorizedMismatch */ import java.util.Arrays; ! public class C1VectorizedMismatch { private static final int NUM_RUNS = 10000; ! private static final int ARRAY_SIZE=10000; private static int[] a; private static int[] b; public static void main(String[] args) { a = new int[ARRAY_SIZE]; --- 19,41 ---- * or visit www.oracle.com if you need additional information or have any * questions. * */ ! /* @test TestC1VectorizedMismatch * @summary test C1 vectorized mismatch intrinsic ! * @key gc ! * ! * @run main/othervm -XX:TieredStopAtLevel=1 -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=aggressive TestC1VectorizedMismatch */ import java.util.Arrays; ! public class TestC1VectorizedMismatch { private static final int NUM_RUNS = 10000; ! private static final int ARRAY_SIZE = 10000; private static int[] a; private static int[] b; public static void main(String[] args) { a = new int[ARRAY_SIZE];
*** 46,56 **** private static void test() { int[] a1 = new int[ARRAY_SIZE]; int[] b1 = new int[ARRAY_SIZE]; fillArray(a); System.arraycopy(a, 0, b, 0, ARRAY_SIZE); ! if (! Arrays.equals(a, b)) { throw new RuntimeException("arrays not equal"); } } private static void fillArray(int[] array) { --- 48,58 ---- private static void test() { int[] a1 = new int[ARRAY_SIZE]; int[] b1 = new int[ARRAY_SIZE]; fillArray(a); System.arraycopy(a, 0, b, 0, ARRAY_SIZE); ! if (!Arrays.equals(a, b)) { throw new RuntimeException("arrays not equal"); } } private static void fillArray(int[] array) {
< prev index next >