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
We could also take advantage of taking the AdapterHandlerLibrary_lock and allocate one or both arrays statically