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

Streamline AbstractInterpreter::method_kind

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • 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.

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

              Created:
              Updated:
              Resolved: