Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8024649 Umbrella: Lambda linkage performance
  3. JDK-8024635

Caching MethodType's descriptor string improves lambda linkage performance

    Details

    • Subcomponent:
    • Resolved In Build:
      b117
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        MethodType.toMethodDescriptorString() is frequently invoked when generating lambda classes from InnerClassLambdaMetafactory.
        Caching resulting string into the field of MethodType gives +5% - +10% to lambda linkage performance.

        Minor performance improvement: private method "checkPtype" was inlined and eliminated. "checkRtype" and "checkPtypes" were refactored for better perfomance in HotSpot interpreter (important for lambda linkage). overall result +1%.

        Attached webrev contains fix: please review.

          Attachments

          1. webrev.zip
            113 kB
          2. webrev01.zip
            115 kB
          3. webrev02.zip
            115 kB

            Issue Links

              Activity

                People

                • Assignee:
                  jrose John Rose
                  Reporter:
                  skuksenko Sergey Kuksenko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: