< prev index next >

test/compiler/c2/cr6589834/Test_ia32.java

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

@@ -24,31 +24,36 @@
 /**
  * @test
  * @bug 6589834
  * @summary Safepoint placed between stack pointer increment and decrement leads
  *          to interpreter's stack corruption after deoptimization.
- * @library /testlibrary /test/lib
+ * @library /testlibrary /test/lib /
  * @modules java.base/jdk.internal.misc
  *          java.compiler
  *          java.management
  *          jdk.jvmstat/sun.jvmstat.monitor
+ *
  * @build ClassFileInstaller sun.hotspot.WhiteBox jdk.test.lib.*
- *        Test_ia32 InlinedArrayCloneTestCase
- * @run main ClassFileInstaller sun.hotspot.WhiteBox
+ *        compiler.c2.cr6589834.Test_ia32
+ *        compiler.c2.cr6589834.InlinedArrayCloneTestCase
+ * @run driver ClassFileInstaller sun.hotspot.WhiteBox
  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
- *      -XX:+WhiteBoxAPI -XX:CompileOnly=InlinedArrayCloneTestCase
- *      -XX:CompileCommand=dontinline,InlinedArrayCloneTestCase.invokeArrayClone
- *      -XX:CompileCommand=inline,InlinedArrayCloneTestCase.verifyArguments
- *      -XX:+IgnoreUnrecognizedVMOptions -XX:+VerifyStack Test_ia32
+ *      -XX:+WhiteBoxAPI -XX:+IgnoreUnrecognizedVMOptions -XX:+VerifyStack
+ *      -XX:CompileCommand=compileonly,compiler.c2.cr6589834.InlinedArrayCloneTestCase::*
+ *      -XX:CompileCommand=dontinline,compiler.c2.cr6589834.InlinedArrayCloneTestCase::invokeArrayClone
+ *      -XX:CompileCommand=inline,compiler.c2.cr6589834.InlinedArrayCloneTestCase::verifyArguments
+ *      compiler.c2.cr6589834.Test_ia32
  */
 
-import java.lang.reflect.Method;
+package compiler.c2.cr6589834;
 
 import jdk.test.lib.Asserts;
 import sun.hotspot.WhiteBox;
 
+import java.lang.reflect.Method;
+
 public class Test_ia32 {
     private static final int NUM_THREADS
             = Math.min(100, 2 * Runtime.getRuntime().availableProcessors());
     private static final int CLONE_LENGTH = 1000;
 

@@ -109,11 +114,11 @@
          * Load NotLoadedClass to cause deoptimization of
          * InlinedArrayCloneTestCase::invokeArrayClone due to invalidated
          * dependency.
          */
         try {
-            Class.forName("NotLoadedClass");
+            Class.forName(Test_ia32.class.getPackage().getName() + ".NotLoadedClass");
         } catch (ClassNotFoundException e) {
             throw new Error("Unable to load class that invalidates "
                     + "CHA-dependency for method " + method.getName(), e);
         }
 
< prev index next >