test/compiler/jsr292/NonInlinedCall/InvokeTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff test/compiler/jsr292/NonInlinedCall/InvokeTest.java

test/compiler/jsr292/NonInlinedCall/InvokeTest.java

Print this page

        

*** 178,188 **** } static void testInterface() { System.out.println("linkToInterface"); ! // Monomorphic case (optimized virtual call) run(() -> linkToInterface(new T(), I.class)); // Megamorphic case (virtual call) Object[][] recv = new Object[][] {{new T(), I.class}, {new P1(), P1.class}, {new P2(), P2.class}}; run(() -> { --- 178,191 ---- } static void testInterface() { System.out.println("linkToInterface"); ! // Monomorphic case (optimized virtual call), concrete target method ! run(() -> linkToInterface(new P1(), P1.class)); ! ! // Monomorphic case (optimized virtual call), default target method run(() -> linkToInterface(new T(), I.class)); // Megamorphic case (virtual call) Object[][] recv = new Object[][] {{new T(), I.class}, {new P1(), P1.class}, {new P2(), P2.class}}; run(() -> {
test/compiler/jsr292/NonInlinedCall/InvokeTest.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File