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

MethodTypeForm.LF_INTERPRET can cache the MemberName instead

XMLWordPrintable

      One of the cached Lambda forms in MethodTypeForm is LF_INTERPRET, the interpreter entrypoint for lambda forms that have the given erased method type form. (Can't use basic types because there is primitive-specific boxing and unboxing)

      This lambda form is only created and used in LambdaForm::prepare, and only its vmentry is ever used. We can change the cache in MethodTypeForm to be a SoftReference on a MemberName. Then, we can also remove LambdaForm::createBlankForType.

            liach Chen Liang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: