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

Cache the enum values for VarHandle.AccessType

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 22
    • core-libs

      AccessType and AccessMode in VarHandle have their entries accessed by index, so caching these enums' values array would allow reducing array allocations on `values()[index]` calls.

            liach Chen Liang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: