mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8334046: Set different values for CompLevel_any and CompLevel_all
Reviewed-by: shade, kvn
This commit is contained in:
parent
6df34c361e
commit
9ee5590328
@ -53,7 +53,7 @@ enum MethodCompilation {
|
||||
|
||||
// Enumeration to distinguish tiers of compilation
|
||||
enum CompLevel : s1 {
|
||||
CompLevel_any = -1, // Used for querying the state
|
||||
CompLevel_any = -2, // Used for querying the state
|
||||
CompLevel_all = -1, // Used for changing the state
|
||||
CompLevel_none = 0, // Interpreter
|
||||
CompLevel_simple = 1, // C1
|
||||
|
||||
@ -41,8 +41,10 @@ import java.util.function.Function;
|
||||
public abstract class CompilerWhiteBoxTest {
|
||||
/** {@code CompLevel::CompLevel_none} -- Interpreter */
|
||||
public static final int COMP_LEVEL_NONE = 0;
|
||||
/** {@code CompLevel::CompLevel_any}, {@code CompLevel::CompLevel_all} */
|
||||
public static final int COMP_LEVEL_ANY = -1;
|
||||
/** {@code CompLevel::CompLevel_any} */
|
||||
public static final int COMP_LEVEL_ANY = -2;
|
||||
/** {@code CompLevel::CompLevel_all} */
|
||||
public static final int COMP_LEVEL_ALL = -1;
|
||||
/** {@code CompLevel::CompLevel_simple} -- C1 */
|
||||
public static final int COMP_LEVEL_SIMPLE = 1;
|
||||
/** {@code CompLevel::CompLevel_limited_profile} -- C1, invocation & backedge counters */
|
||||
@ -284,7 +286,7 @@ public abstract class CompilerWhiteBoxTest {
|
||||
}
|
||||
|
||||
protected final void makeNotCompilable() {
|
||||
WHITE_BOX.makeMethodNotCompilable(method, COMP_LEVEL_ANY,
|
||||
WHITE_BOX.makeMethodNotCompilable(method, COMP_LEVEL_ALL,
|
||||
testCase.isOsr());
|
||||
}
|
||||
|
||||
|
||||
@ -345,7 +345,7 @@ public class WhiteBox {
|
||||
return isMethodCompiled0(method, isOsr);
|
||||
}
|
||||
public boolean isMethodCompilable(Executable method) {
|
||||
return isMethodCompilable(method, -1 /*any*/);
|
||||
return isMethodCompilable(method, -2 /*any*/);
|
||||
}
|
||||
public boolean isMethodCompilable(Executable method, int compLevel) {
|
||||
return isMethodCompilable(method, compLevel, false /*not osr*/);
|
||||
@ -393,7 +393,7 @@ public class WhiteBox {
|
||||
return deoptimizeMethod0(method, isOsr);
|
||||
}
|
||||
public void makeMethodNotCompilable(Executable method) {
|
||||
makeMethodNotCompilable(method, -1 /*any*/);
|
||||
makeMethodNotCompilable(method, -1 /*all*/);
|
||||
}
|
||||
public void makeMethodNotCompilable(Executable method, int compLevel) {
|
||||
makeMethodNotCompilable(method, compLevel, false /*not osr*/);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user