< prev index next >

test/compiler/c2/Test6792161.java

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

*** 25,38 **** /** * @test * @bug 6792161 * @summary assert("No dead instructions after post-alloc") * ! * @run main/othervm/timeout=600 -Xcomp -XX:MaxInlineSize=120 Test6792161 */ import java.lang.reflect.Constructor; public class Test6792161 { static Constructor test(Class cls) throws Exception { Class[] args= { String.class }; try { return cls.getConstructor(args); --- 25,41 ---- /** * @test * @bug 6792161 * @summary assert("No dead instructions after post-alloc") * ! * @run main/othervm/timeout=600 -Xcomp -XX:MaxInlineSize=120 compiler.c2.Test6792161 */ + package compiler.c2; + import java.lang.reflect.Constructor; + public class Test6792161 { static Constructor test(Class cls) throws Exception { Class[] args= { String.class }; try { return cls.getConstructor(args);
*** 40,49 **** return cls.getConstructor(new Class[0]); } public static void main(final String[] args) throws Exception { try { for (int i = 0; i < 100000; i++) { ! Constructor ctor = test(Class.forName("Test6792161")); } } catch (NoSuchMethodException e) {} } } --- 43,52 ---- return cls.getConstructor(new Class[0]); } public static void main(final String[] args) throws Exception { try { for (int i = 0; i < 100000; i++) { ! Constructor ctor = test(Class.forName("compiler.c2.Test6792161")); } } catch (NoSuchMethodException e) {} } }
< prev index next >