Streamline AbstractInterpreter::method_kind

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 17
    • Affects Version/s: 17
    • Component/s: hotspot
    • b22

      This method checks m->intrinsic_id() in three different places, which instrumenting shows end up in different branches. Some of that split is due StrictMath having one method that is both native and an @IntrinsicCandidate.

      It would be simpler - and slightly more efficient - to streamline this and deal with the exceptions on a case by case basis.

      On a Hello World, a streamlined method_kind implementation is roughly 40% faster - adding up to a 0.25% reduction in instructions executed. This is called when linking methods, so the gain scales with application size.

            Assignee:
            Claes Redestad
            Reporter:
            Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: