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

VarHandles JVMS changes

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: specification
    • Labels:
    • Subcomponent:
      vm

      Description

      From the JEP 193 description:

      The following additions will be required to the Java Virtual Machine Specification:

      1. Make reference to the signature-polymorphic access mode methods in the VarHandle class.

      2. Specify invokevirtual byte code behaviour of invocation to access mode signature-polymorphic methods. It is anticipated that such behaviour can be specified by defining a transformation from the access mode method invocation to a MethodHandle which is then invoked using invokeExact with the same parameters (see previous use of MethodHandles.Lookup.findVirtual). Further investigation is required to determine if refined transformations are possible (now, or in the future without breaking compatibility) to make access mode method similar to MethodHandle.invoke, for example, by transforming the method handle via MethodHandle.asType where all reference types are cast from Object.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              abuckley Alex Buckley
              Reporter:
              psandoz Paul Sandoz
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: