mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8151880: EnqueueMethodForCompilationTest.java still fails to compile method
Extract SimpleTestCaseHelper inner class Reviewed-by: kvn
This commit is contained in:
parent
7502a7a7f2
commit
c70e07ccbe
12 changed files with 81 additions and 71 deletions
|
@ -29,9 +29,9 @@ import compiler.whitebox.CompilerWhiteBoxTest;
|
|||
* @library /testlibrary /test/lib /
|
||||
* @modules java.management
|
||||
* @build MakeMethodNotCompilableTest
|
||||
* @run main ClassFileInstaller sun.hotspot.WhiteBox
|
||||
* sun.hotspot.WhiteBox$WhiteBoxPermission
|
||||
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xmixed MakeMethodNotCompilableTest
|
||||
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
|
||||
* sun.hotspot.WhiteBox$WhiteBoxPermission
|
||||
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xmixed -XX:-UseCounterDecay MakeMethodNotCompilableTest
|
||||
* @summary testing of WB::makeMethodNotCompilable()
|
||||
* @author igor.ignatyev@oracle.com
|
||||
*/
|
||||
|
@ -39,8 +39,8 @@ public class MakeMethodNotCompilableTest extends CompilerWhiteBoxTest {
|
|||
private int bci;
|
||||
public static void main(String[] args) throws Exception {
|
||||
String directive =
|
||||
"[{ match:\"*SimpleTestCase$Helper.*\", BackgroundCompilation: false }, " +
|
||||
" { match:\"*.*\", inline:\"-*SimpleTestCase$Helper.*\"}]";
|
||||
"[{ match:\"*SimpleTestCaseHelper.*\", BackgroundCompilation: false }, " +
|
||||
" { match:\"*.*\", inline:\"-*SimpleTestCaseHelper.*\"}]";
|
||||
if (WHITE_BOX.addCompilerDirective(directive) != 2) {
|
||||
throw new RuntimeException("Could not add directive");
|
||||
}
|
||||
|
@ -227,7 +227,7 @@ public class MakeMethodNotCompilableTest extends CompilerWhiteBoxTest {
|
|||
return false;
|
||||
}
|
||||
|
||||
private int getBci() {
|
||||
private int getBci() throws Exception {
|
||||
compile();
|
||||
checkCompiled();
|
||||
int result = WHITE_BOX.getMethodEntryBci(method);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue