< prev index next >

test/compiler/profiling/unloadingconflict/TestProfileConflictClassUnloading.java

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

*** 22,37 **** */ /* * @test * @bug 8027572 ! * @summary class unloading resets profile, method compiled after the profile is first set and before class loading sets unknown bit with not recorded class ! * @build B ! * @run main/othervm -XX:TypeProfileLevel=222 -XX:-BackgroundCompilation TestProfileConflictClassUnloading * */ import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; import java.nio.file.Paths; --- 22,42 ---- */ /* * @test * @bug 8027572 ! * @summary class unloading resets profile, method compiled after the profile is ! * first set and before class loading sets unknown bit with not recorded class ! * @library / ! * @build compiler.profiling.unloadingconflict.B ! * @run main/othervm -XX:TypeProfileLevel=222 -XX:-BackgroundCompilation ! * compiler.profiling.unloadingconflict.TestProfileConflictClassUnloading * */ + package compiler.profiling.unloadingconflict; + import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; import java.nio.file.Paths;
*** 64,74 **** } } public static void main(String[] args) throws Exception { ClassLoader loader = newClassLoader(); ! Object o = loader.loadClass("B").newInstance(); // collect conflicting profiles for (int i = 0; i < 5000; i++) { m2(o); } // prepare for conflict --- 69,79 ---- } } public static void main(String[] args) throws Exception { ClassLoader loader = newClassLoader(); ! Object o = loader.loadClass("compiler.profiling.unloadingconflict.B").newInstance(); // collect conflicting profiles for (int i = 0; i < 5000; i++) { m2(o); } // prepare for conflict
< prev index next >