Reduce allocations in AdapterHandlerLibrary::get_adapter

XMLWordPrintable

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

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

              Created:
              Updated:
              Resolved: