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

Method::result_type should use calculated value in constMethod

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      A simple, independent optimization extracted from JDK-8230199:

      Method::result_type() doesn't need to scan the signature of the method, since the result_type is always calculated and stored inside method->constMethod

      Method::result_type is used in a number of places, so turning it from something that scans signatures to a trivial accessor turns out to be a small but very solid optimization.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: