< prev index next >

test/compiler/c2/Test6800154.java

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

*** 25,37 **** * @test * @bug 6800154 * @summary Add comments to long_by_long_mulhi() for better understandability * @modules java.base/jdk.internal.misc * @library /testlibrary ! * @run main/othervm -Xcomp -XX:CompileOnly=Test6800154.divcomp Test6800154 */ import jdk.test.lib.Utils; public class Test6800154 implements Runnable { static final long[] DIVIDENDS = { 0, --- 25,43 ---- * @test * @bug 6800154 * @summary Add comments to long_by_long_mulhi() for better understandability * @modules java.base/jdk.internal.misc * @library /testlibrary ! * ! * @run main/othervm -Xcomp ! * -XX:CompileCommand=compileonly,compiler.c2.Test6800154::divcomp ! * compiler.c2.Test6800154 */ + + package compiler.c2; + import jdk.test.lib.Utils; public class Test6800154 implements Runnable { static final long[] DIVIDENDS = { 0,
*** 76,94 **** DIVISOR = value; } public static void main(String[] args) throws Exception { ! Class cl = Class.forName("Test6800154"); ClassLoader apploader = cl.getClassLoader(); // Iterate over all divisors. for (int i = 0; i < DIVISORS.length; i++) { System.setProperty("divisor", "" + DIVISORS[i]); ClassLoader loader = Utils.getTestClassPathURLClassLoader(apploader.getParent()); ! Class c = loader.loadClass("Test6800154"); Runnable r = (Runnable) c.newInstance(); r.run(); } } --- 82,100 ---- DIVISOR = value; } public static void main(String[] args) throws Exception { ! Class cl = Test6800154.class; ClassLoader apploader = cl.getClassLoader(); // Iterate over all divisors. for (int i = 0; i < DIVISORS.length; i++) { System.setProperty("divisor", "" + DIVISORS[i]); ClassLoader loader = Utils.getTestClassPathURLClassLoader(apploader.getParent()); ! Class c = loader.loadClass(Test6800154.class.getName()); Runnable r = (Runnable) c.newInstance(); r.run(); } }
< prev index next >