RFR: 8286669: Replace MethodHandle specialization with ASM in mainline [v3]

Jorn Vernee jvernee at openjdk.java.net
Tue May 17 15:26:08 UTC 2022


On Tue, 17 May 2022 14:28:11 GMT, Rémi Forax <forax at openjdk.org> wrote:

>> What about using MethodTypeDesc/ClassDesc as building block?
>
> yes, it should be less expensive, the ClassDesc still need to be constructed from Class to allow refactoring.

Can't wait for constant folding :)

I'll pull the `methodType(void.class).descriptorString()` into a separate constant, and reuse that.

I don't think it's worth it to spend too much time here at this point though, since this code is only executed once.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8685


More information about the core-libs-dev mailing list