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

Reduce allocations in AdapterHandlerLibrary::get_adapter

    XMLWordPrintable

Details

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

    Description

      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

      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: