Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8065760

CHA: Improve abstract method support

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 17
    • 9, 10
    • hotspot
    • b25

      Consider the following hierarchy:
          interface I1 { public int m(); }
          abstract class C1 implements I1 {}
          class C2 extends C1 { public int m() { return 0; }}
       
      Call site: invokevirtual C1.m() C2

      The call site is monomorphic (C2.m()), but inlining during C1 compilation fails with the following message:
         2217 1 b 1 jsr292.DevirtIntfMethod::test (5 bytes)
                           @ 1 jsr292.DevirtIntfMethod$I1::m (0 bytes) not inlineable

            vlivanov Vladimir Ivanov
            vlivanov Vladimir Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: