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

Improve VarHandle checks for interpreter

    XMLWordPrintable

Details

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

    Description

      - Flatten TypesAndInvokers: this adds 4-8 bytes to VarHandle in some configurations, but reduces indirection and improve laziness and net total footprint (in-use VHs will typically always need the MethodType[], but might never need the MethodHandle[])
      - Have checkExactAccessMode return the "direct" predicate of the VarHandle, so that VarHandleGuards can avoid some method calls

      Both speed-up invocation of VHs in interpreted mode.

      Attachments

        Issue Links

          Activity

            People

              redestad Claes Redestad
              redestad Claes Redestad
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: