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

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

    XMLWordPrintable

Details

    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

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

              Dates

                Created:
                Updated:
                Resolved: