Skip to content

Commit 5f99819

Browse files
committed
8261270: MakeMethodNotCompilableTest fails with -XX:TieredStopAtLevel={1,2,3}
Backport-of: 0e18634
1 parent 013aa4d commit 5f99819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/hotspot/jtreg/compiler/whitebox/MakeMethodNotCompilableTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private void testTier(int testedTier) {
202202
deoptimize();
203203
}
204204

205-
if (!isCompilable(COMP_LEVEL_ANY)) {
205+
if (!isCompilable(COMP_LEVEL_ANY) && TIERED_STOP_AT_LEVEL == COMP_LEVEL_FULL_OPTIMIZATION) {
206206
throw new RuntimeException(method
207207
+ " must be compilable at 'CompLevel::CompLevel_any'"
208208
+ ", if it is not compilable only at " + testedTier);

0 commit comments

Comments
 (0)