< prev index next >

test/compiler/c2/Test6880034.java

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke

@@ -24,15 +24,18 @@
 /**
  * @test
  * @bug 6880034
  * @summary SIGBUS during deoptimisation at a safepoint on 64bit-SPARC
  *
- * @run main/othervm -Xcomp -Xbatch -XX:CompileCommand=compileonly,Test6880034,deopt_compiledframe_at_safepoint -XX:+PrintCompilation Test6880034
+ * @run main/othervm -Xcomp -Xbatch
+ *    -XX:+PrintCompilation
+ *    -XX:CompileCommand=compileonly,compiler.c2.Test6880034::deopt_compiledframe_at_safepoint
+ *    compiler.c2.Test6880034
  */
 
+package compiler.c2;
 
-
 // This test provokes a deoptimisation at a safepoint.
 //
 // It achieves this by compiling the method 'deopt_compiledframe_at_safepoint'
 // before its first usage at a point in time when a call to the virtual method
 // A::doSomething() from within 'deopt_compiledframe_at_safepoint' can be

@@ -59,25 +62,26 @@
 // crash in deopt_compiledframe_at_safepoint() will not be detected as a test
 // failure by jtreg.
 //
 // Author: Volker H. Simonis
 
-class A {
+public class Test6880034 {
+  static class A {
   public int doSomething() {
     return 0;
   }
-}
+  }
 
-class B extends A {
+  static class B extends A {
   public B() {}
   // override 'A::doSomething()'
   public int doSomething() {
     return 1;
   }
-}
+  }
 
-class G {
+  static class G {
   public static volatile A a = new A();
 
   // Change 'a' to point to a 'B' object
   public static void setAtoB() {
     try {

@@ -89,14 +93,12 @@
     }
     catch (Exception e) {
       System.out.println(e);
     }
   }
-}
+  }
 
-public class Test6880034 {
-
   public static volatile boolean is_in_loop = false;
   public static volatile boolean stop_while_loop = false;
 
   public static double deopt_compiledframe_at_safepoint() {
     // This will be an optimised static call to A::doSomething() until we load "B"
< prev index next >