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

Implement VarHandle invoker caching

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: core-libs
    • Labels:

      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

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

                Dates

                Created:
                Updated:
                Resolved: