mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8066770: EnqueueMethodForCompilationTest.java fails to compile method
Make compiles blocking and always check queue Reviewed-by: kvn
This commit is contained in:
parent
9e21021abb
commit
b01a1a42e3
5 changed files with 46 additions and 11 deletions
|
@ -31,14 +31,24 @@ import compiler.whitebox.CompilerWhiteBoxTest;
|
|||
* @build EnqueueMethodForCompilationTest
|
||||
* @run main ClassFileInstaller sun.hotspot.WhiteBox
|
||||
* sun.hotspot.WhiteBox$WhiteBoxPermission
|
||||
* @run main/othervm/timeout=600 -Xbootclasspath/a:. -Xmixed -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:CompileCommand=compileonly,compiler.whitebox.SimpleTestCase$Helper::* EnqueueMethodForCompilationTest
|
||||
* @run main/othervm -Xbootclasspath/a:. -Xmixed -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI EnqueueMethodForCompilationTest
|
||||
* @summary testing of WB::enqueueMethodForCompilation()
|
||||
* @author igor.ignatyev@oracle.com
|
||||
*/
|
||||
public class EnqueueMethodForCompilationTest extends CompilerWhiteBoxTest {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
CompilerWhiteBoxTest.main(EnqueueMethodForCompilationTest::new, args);
|
||||
String directive =
|
||||
"[{ match:\"*SimpleTestCase$Helper.*\", BackgroundCompilation: false }, " +
|
||||
" { match:\"*.*\", inline:\"-*SimpleTestCase$Helper.*\"}]";
|
||||
if (WHITE_BOX.addCompilerDirective(directive) != 2) {
|
||||
throw new RuntimeException("Could not add directive");
|
||||
}
|
||||
try {
|
||||
CompilerWhiteBoxTest.main(EnqueueMethodForCompilationTest::new, args);
|
||||
} finally {
|
||||
WHITE_BOX.removeCompilerDirective(2);
|
||||
}
|
||||
}
|
||||
|
||||
private EnqueueMethodForCompilationTest(TestCase testCase) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue