Improve VarHandle checks for interpreter

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 19
    • Affects Version/s: 17, 19
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: