< prev index next >
test/compiler/c2/Test6695810.java
Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke
*** 23,48 ****
/*
* @test
* @bug 6695810
* @summary null oop passed to encode_heap_oop_not_null
! * @run main/othervm -Xbatch Test
*/
! public class Test {
! Test _t;
! static void test(Test t1, Test t2) {
if (t2 != null)
t1._t = t2;
if (t2 != null)
t1._t = t2;
}
public static void main(String[] args) {
! Test t = new Test();
for (int i = 0; i < 50; i++) {
for (int j = 0; j < 100; j++) {
test(t, t);
}
test(t, null);
--- 23,51 ----
/*
* @test
* @bug 6695810
* @summary null oop passed to encode_heap_oop_not_null
! *
! * @run main/othervm -Xbatch compiler.c2.Test6695810
*/
! package compiler.c2;
! public class Test6695810 {
! Test6695810 _t;
!
! static void test(Test6695810 t1, Test6695810 t2) {
if (t2 != null)
t1._t = t2;
if (t2 != null)
t1._t = t2;
}
public static void main(String[] args) {
! Test6695810 t = new Test6695810();
for (int i = 0; i < 50; i++) {
for (int j = 0; j < 100; j++) {
test(t, t);
}
test(t, null);
< prev index next >