hotspot/test/compiler/jsr292/NonInlinedCall/InvokeTest.java
changeset 36331 eeeb86fd9922
parent 35108 ccb4e1f2a6cf
child 36508 5f9eee6b383b
equal deleted inserted replaced
36330:37a0f096251b 36331:eeeb86fd9922
   178     }
   178     }
   179 
   179 
   180     static void testInterface() {
   180     static void testInterface() {
   181         System.out.println("linkToInterface");
   181         System.out.println("linkToInterface");
   182 
   182 
   183         // Monomorphic case (optimized virtual call)
   183         // Monomorphic case (optimized virtual call), concrete target method
       
   184         run(() -> linkToInterface(new P1(), P1.class));
       
   185 
       
   186         // Monomorphic case (optimized virtual call), default target method
   184         run(() -> linkToInterface(new T(), I.class));
   187         run(() -> linkToInterface(new T(), I.class));
   185 
   188 
   186         // Megamorphic case (virtual call)
   189         // Megamorphic case (virtual call)
   187         Object[][] recv = new Object[][] {{new T(), I.class}, {new P1(), P1.class}, {new P2(), P2.class}};
   190         Object[][] recv = new Object[][] {{new T(), I.class}, {new P1(), P1.class}, {new P2(), P2.class}};
   188         run(() -> {
   191         run(() -> {