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

LambdaFormEditor should use a transform lookup key that is not a SoftReference

    XMLWordPrintable

    Details

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

      Description

      LambdaFormEditor caches the LambdaForm result of some transforms using a Transform, which is both used as a lookup key and to hold a soft reference to the cached LambdaForm.

      The lookup key is always discarded (a new one wrapping the LambdaForm to be cached will be allocated on a miss). This means we are queuing up a SoftReference. A non-SoftReference lookup key would also be thinner, causing less allocation pressure.

        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: