< prev index next >

test/compiler/c2/6800154/Test6800154.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 23,37 **** /** * @test * @bug 6800154 * @summary Add comments to long_by_long_mulhi() for better understandability ! * * @run main/othervm -Xcomp -XX:CompileOnly=Test6800154.divcomp Test6800154 */ ! import java.net.URLClassLoader; public class Test6800154 implements Runnable { static final long[] DIVIDENDS = { 0, 1, --- 23,37 ---- /** * @test * @bug 6800154 * @summary Add comments to long_by_long_mulhi() for better understandability ! * @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, 1,
*** 76,91 **** } public static void main(String[] args) throws Exception { Class cl = Class.forName("Test6800154"); ! URLClassLoader apploader = (URLClassLoader) cl.getClassLoader(); // Iterate over all divisors. for (int i = 0; i < DIVISORS.length; i++) { System.setProperty("divisor", "" + DIVISORS[i]); ! ClassLoader loader = new URLClassLoader(apploader.getURLs(), apploader.getParent()); Class c = loader.loadClass("Test6800154"); Runnable r = (Runnable) c.newInstance(); r.run(); } } --- 76,92 ---- } 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(); } }
< prev index next >