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

Convert proxy class to use constant dynamic

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 14
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      Remi's suggestion: (see https://mail.openjdk.java.net/pipermail/core-libs-dev/2019-August/061923.html )

      Proxy class computes all declared methods and stores them as static final fields. It can replace these static field initialization with constant dynamic.

      The idea is that a ldc on a constant dynamic with bootstrap method that takes a MethodHandle as parameter (as boostrap argument) can return the corresponding Method by using Lookup.revealDirect + reflectAs.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mchung Mandy Chung
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: