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

MethodTypeForm.LF_INTERPRET can cache the MemberName instead

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 25
    • core-libs

      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.

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

              Created:
              Updated: