Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hotspot/share/compiler/compilerDefinitions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@
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 */
Expand Down Expand Up @@ -284,7 +286,7 @@ protected final boolean isCompilable(int compLevel) {
}

protected final void makeNotCompilable() {
WHITE_BOX.makeMethodNotCompilable(method, COMP_LEVEL_ANY,
WHITE_BOX.makeMethodNotCompilable(method, COMP_LEVEL_ALL,
testCase.isOsr());
}

Expand Down
4 changes: 2 additions & 2 deletions test/lib/jdk/test/whitebox/WhiteBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ public boolean isMethodCompiled(Executable method, boolean isOsr){
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*/);
Expand Down Expand Up @@ -393,7 +393,7 @@ public int deoptimizeMethod(Executable method, boolean isOsr) {
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*/);
Expand Down