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

Streamline AbstractInterpreter::method_kind

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b22

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: