22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test LockCompilationTest |
25 * @test LockCompilationTest |
26 * @bug 8059624 |
26 * @bug 8059624 |
27 * @library /testlibrary /../../test/lib |
27 * @library /testlibrary /../../test/lib / |
28 * @modules java.management |
28 * @modules java.management |
29 * @build LockCompilationTest |
29 * @build LockCompilationTest |
30 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
30 * @run main ClassFileInstaller sun.hotspot.WhiteBox |
31 * sun.hotspot.WhiteBox$WhiteBoxPermission |
31 * sun.hotspot.WhiteBox$WhiteBoxPermission |
32 * @run main/othervm/timeout=600 -Xbootclasspath/a:. -Xmixed -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:CompileCommand=compileonly,SimpleTestCase$Helper::* LockCompilationTest |
32 * @run main/othervm/timeout=600 -Xbootclasspath/a:. -Xmixed -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:CompileCommand=compileonly,compiler.whitebox.SimpleTestCase$Helper::* LockCompilationTest |
33 * @summary testing of WB::lock/unlockCompilation() |
33 * @summary testing of WB::lock/unlockCompilation() |
34 */ |
34 */ |
35 |
35 |
36 import java.io.OutputStream; |
36 import java.io.OutputStream; |
37 import java.io.PrintWriter; |
37 import java.io.PrintWriter; |
38 import java.util.concurrent.BrokenBarrierException; |
38 import java.util.concurrent.BrokenBarrierException; |
39 import java.util.concurrent.CyclicBarrier; |
39 import java.util.concurrent.CyclicBarrier; |
40 |
40 import compiler.whitebox.CompilerWhiteBoxTest; |
41 import jdk.test.lib.Asserts; |
41 import jdk.test.lib.Asserts; |
42 |
42 |
43 public class LockCompilationTest extends CompilerWhiteBoxTest { |
43 public class LockCompilationTest extends CompilerWhiteBoxTest { |
44 public static void main(String[] args) throws Exception { |
44 public static void main(String[] args) throws Exception { |
45 CompilerWhiteBoxTest.main(LockCompilationTest::new, args); |
45 CompilerWhiteBoxTest.main(LockCompilationTest::new, args); |