< prev index next >
test/compiler/c2/Test6695810.java
Print this page
@@ -23,26 +23,29 @@
/*
* @test
* @bug 6695810
* @summary null oop passed to encode_heap_oop_not_null
- * @run main/othervm -Xbatch Test
+ *
+ * @run main/othervm -Xbatch compiler.c2.Test6695810
*/
-public class Test {
- Test _t;
+package compiler.c2;
- static void test(Test t1, Test t2) {
+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) {
- Test t = new Test();
+ 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 >