< prev index next >

test/compiler/jvmci/compilerToVM/DoNotInlineOrCompileTest.java

Print this page

        

*** 43,53 **** import java.lang.reflect.Executable; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import jdk.vm.ci.hotspot.CompilerToVMHelper; ! import jdk.vm.ci.hotspot.HotSpotResolvedJavaMethodImpl; import jdk.test.lib.Asserts; import sun.hotspot.WhiteBox; public class DoNotInlineOrCompileTest { --- 43,53 ---- import java.lang.reflect.Executable; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import jdk.vm.ci.hotspot.CompilerToVMHelper; ! import jdk.vm.ci.hotspot.HotSpotResolvedJavaMethod; import jdk.test.lib.Asserts; import sun.hotspot.WhiteBox; public class DoNotInlineOrCompileTest {
*** 57,67 **** List<Executable> testCases = createTestCases(); testCases.forEach(DoNotInlineOrCompileTest::runSanityTest); } private static void runSanityTest(Executable aMethod) { ! HotSpotResolvedJavaMethodImpl method = CTVMUtilities .getResolvedMethod(aMethod); boolean canInline = CompilerToVMHelper.canInlineMethod(method); Asserts.assertTrue(canInline, "Unexpected initial " + "value of property 'can inline'"); CompilerToVMHelper.doNotInlineOrCompile(method); --- 57,67 ---- List<Executable> testCases = createTestCases(); testCases.forEach(DoNotInlineOrCompileTest::runSanityTest); } private static void runSanityTest(Executable aMethod) { ! HotSpotResolvedJavaMethod method = CTVMUtilities .getResolvedMethod(aMethod); boolean canInline = CompilerToVMHelper.canInlineMethod(method); Asserts.assertTrue(canInline, "Unexpected initial " + "value of property 'can inline'"); CompilerToVMHelper.doNotInlineOrCompile(method);
< prev index next >