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

Improve VarHandle checks for interpreter

XMLWordPrintable

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

      - 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.

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

              Created:
              Updated:
              Resolved: