RFR: 8265606: Reduce allocations in AdapterHandlerLibrary::get_adapter [v2]
Claes Redestad
redestad at openjdk.java.net
Wed Apr 21 19:00:55 UTC 2021
On Wed, 21 Apr 2021 17:54:47 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> It was intentional, but it's also a bit of a scope creep: this method is about creating and returning the VMRegPair array, but it also resource-allocs this sig_bt array and keeps it alive for however long the regs array is kept alive, which means we hold on to a bit more memory for longer for no reason.
>
> The think the original code was written to avoid allocating large arrays on the stack.
Ok, I reverted this change. It's not part of anything I know sees much use anyhow.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3595
More information about the hotspot-runtime-dev
mailing list