8275086: compiler/c2/irTests/TestPostParseCallDevirtualization.java fails when compiler1 is disabled

Reviewed-by: iveresov
This commit is contained in:
sunguoyun 2021-11-03 05:51:18 +00:00 committed by Igor Veresov
parent 2b02b6f513
commit 87b926ebb7

View File

@ -169,8 +169,9 @@ public class TestPostParseCallDevirtualization {
} }
@Run(test = "testMethodHandleCallWithLoop") @Run(test = "testMethodHandleCallWithLoop")
@Warmup(5000)
public void checkTestMethodHandleCallWithLoop() throws Throwable { public void checkTestMethodHandleCallWithLoop() throws Throwable {
Asserts.assertEquals(testMethodHandleCallWithLoop(), 42); Asserts.assertEquals( (int)mh2.invokeExact(), 42);
} }
@Test @Test
@ -194,7 +195,8 @@ public class TestPostParseCallDevirtualization {
} }
@Run(test = "testMethodHandleCallWithCCP") @Run(test = "testMethodHandleCallWithCCP")
@Warmup(5000)
public void checkTestMethodHandleCallWithCCP() throws Throwable { public void checkTestMethodHandleCallWithCCP() throws Throwable {
Asserts.assertEquals(testMethodHandleCallWithCCP(), 42); Asserts.assertEquals( (int)mh2.invokeExact(), 42);
} }
} }