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

Reduce allocations in AdapterHandlerLibrary::get_adapter

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • None
    • hotspot
    • b20

      VMRegPair* regs is allocated before the lookup, but only used if no entry was found. Moving it to after the early return reduces cost of the common case of looking up an adapter that already exist

      We could also take advantage of taking the AdapterHandlerLibrary_lock and allocate one or both arrays statically

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

              Created:
              Updated:
              Resolved: