8022832: Add WB APIs for OSR compilation

Reviewed-by: kvn
This commit is contained in:
Igor Ignatyev 2013-08-14 23:50:23 +04:00
parent f9cf9e88b8
commit caa3d02130
14 changed files with 371 additions and 125 deletions

View file

@ -23,6 +23,7 @@
/*
* @test ClearMethodStateTest
* @bug 8006683 8007288 8022832
* @library /testlibrary /testlibrary/whitebox
* @build ClearMethodStateTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox
@ -59,16 +60,19 @@ public class ClearMethodStateTest extends CompilerWhiteBoxTest {
WHITE_BOX.clearMethodState(method);
checkCompiled();
WHITE_BOX.clearMethodState(method);
WHITE_BOX.deoptimizeMethod(method);
deoptimize();
checkNotCompiled();
if (testCase.isOsr) {
// part test isn't applicable for OSR test case
return;
}
if (!TIERED_COMPILATION) {
WHITE_BOX.clearMethodState(method);
compile(COMPILE_THRESHOLD);
checkCompiled();
WHITE_BOX.deoptimizeMethod(method);
deoptimize();
checkNotCompiled();
WHITE_BOX.clearMethodState(method);