< prev index next >
test/compiler/c2/Test6636138_1.java
Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke
*** 24,38 ****
/**
* @test
* @bug 6636138
* @summary SuperWord::co_locate_pack(Node_List* p) generates memory graph that leads to memory order violation.
*
! * @run main/othervm -Xbatch -XX:CompileOnly=Test1.init Test1
*/
! public class Test1 {
public static void init(int src[], int [] dst, int[] ref) {
// initialize the arrays
for (int i =0; i<src.length; i++) {
src[i] = i;
dst[i] = 2; // yes, dst[i] needed(otherwise src[i] will be replaced with i)
--- 24,42 ----
/**
* @test
* @bug 6636138
* @summary SuperWord::co_locate_pack(Node_List* p) generates memory graph that leads to memory order violation.
*
! * @run main/othervm -Xbatch
! * -XX:CompileCommand=compileonly,compiler.c2.Test6636138_1::init
! * compiler.c2.Test6636138_1
*/
! package compiler.c2;
+ public class Test6636138_1 {
+
public static void init(int src[], int [] dst, int[] ref) {
// initialize the arrays
for (int i =0; i<src.length; i++) {
src[i] = i;
dst[i] = 2; // yes, dst[i] needed(otherwise src[i] will be replaced with i)
< prev index next >