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

Avoid creating WeakEntry wrappers when looking up cached MethodType

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: core-libs

      Description

      The interning mechanism for MethodType could be improved to not need to instantiate a WeakEntry when doing lookups. This gives a small but measurable improvement on startup tests setting up lambdas (~0.5-1%) and indified string concat (~2-4%).

        Attachments

          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: