mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8011971: WB API doesn't accept j.l.reflect.Constructor
Reviewed-by: kvn, vlivanov
This commit is contained in:
parent
23e34191a6
commit
33e3f6b59b
11 changed files with 535 additions and 175 deletions
|
@ -27,20 +27,34 @@
|
|||
* @build DeoptimizeAllTest
|
||||
* @run main ClassFileInstaller sun.hotspot.WhiteBox
|
||||
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI DeoptimizeAllTest
|
||||
* @summary testing of WB::deoptimizeAll()
|
||||
* @author igor.ignatyev@oracle.com
|
||||
*/
|
||||
public class DeoptimizeAllTest extends CompilerWhiteBoxTest {
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
// to prevent inlining #method into #compile()
|
||||
WHITE_BOX.testSetDontInlineMethod(METHOD, true);
|
||||
new DeoptimizeAllTest().runTest();
|
||||
for (TestCase test : TestCase.values()) {
|
||||
new DeoptimizeAllTest(test).runTest();
|
||||
}
|
||||
}
|
||||
|
||||
public DeoptimizeAllTest(TestCase testCase) {
|
||||
super(testCase);
|
||||
// to prevent inlining of #method
|
||||
WHITE_BOX.testSetDontInlineMethod(method, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests {@code WB::deoptimizeAll()} by calling it after
|
||||
* compilation and checking that method isn't compiled.
|
||||
*
|
||||
* @throws Exception if one of the checks fails.
|
||||
*/
|
||||
@Override
|
||||
protected void test() throws Exception {
|
||||
compile();
|
||||
checkCompiled(METHOD);
|
||||
checkCompiled();
|
||||
WHITE_BOX.deoptimizeAll();
|
||||
checkNotCompiled(METHOD);
|
||||
checkNotCompiled();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue