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

Method::result_type should use calculated value in constMethod

XMLWordPrintable

    • b21

      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.

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

              Created:
              Updated:
              Resolved: