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

Implement VarHandle invoker caching

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 17
    • 17
    • core-libs

    Description

      Currently var handle invoker caching has some TODO comments:

          /*non-public*/
          MethodHandle varHandleMethodInvoker(VarHandle.AccessMode ak) {
              // TODO cache invoker
              return makeVarHandleMethodInvoker(ak, false);
          }

          /*non-public*/
          MethodHandle varHandleMethodExactInvoker(VarHandle.AccessMode ak) {
              // TODO cache invoker
              return makeVarHandleMethodInvoker(ak, true);
          }

      It is relatively easy/simple to implement caching here, by replicating what is done for MethodHandle invokers (multiplied by the number of access modes)

      Attachments

        Issue Links

          Activity

            People

              jvernee Jorn Vernee
              jvernee Jorn Vernee
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: