28 import sun.hotspot.WhiteBox; |
28 import sun.hotspot.WhiteBox; |
29 import sun.hotspot.code.BlobType; |
29 import sun.hotspot.code.BlobType; |
30 |
30 |
31 import jdk.test.lib.Asserts; |
31 import jdk.test.lib.Asserts; |
32 import jdk.test.lib.InfiniteLoop; |
32 import jdk.test.lib.InfiniteLoop; |
|
33 import compiler.whitebox.CompilerWhiteBoxTest; |
33 |
34 |
34 /* |
35 /* |
35 * @test |
36 * @test |
36 * @bug 8059624 8064669 |
37 * @bug 8059624 8064669 |
37 * @library /testlibrary /test/lib |
38 * @library /testlibrary /test/lib / |
38 * @modules java.management |
39 * @modules java.management |
39 * @build ForceNMethodSweepTest |
40 * @build ForceNMethodSweepTest |
40 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
41 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
41 * sun.hotspot.WhiteBox$WhiteBoxPermission |
42 * sun.hotspot.WhiteBox$WhiteBoxPermission |
42 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions |
43 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions |
43 * -XX:-TieredCompilation -XX:+WhiteBoxAPI |
44 * -XX:-TieredCompilation -XX:+WhiteBoxAPI |
44 * -XX:CompileCommand=compileonly,SimpleTestCase$Helper::* |
45 * -XX:CompileCommand=compileonly,compiler.whitebox.SimpleTestCase$Helper::* |
45 * -XX:-BackgroundCompilation ForceNMethodSweepTest |
46 * -XX:-BackgroundCompilation ForceNMethodSweepTest |
46 * @summary testing of WB::forceNMethodSweep |
47 * @summary testing of WB::forceNMethodSweep |
47 */ |
48 */ |
48 public class ForceNMethodSweepTest extends CompilerWhiteBoxTest { |
49 public class ForceNMethodSweepTest extends CompilerWhiteBoxTest { |
49 public static void main(String[] args) throws Exception { |
50 public static void main(String[] args) throws Exception { |