RFR: 8350607: Consolidate MethodHandles::zero into MethodHandles::constant [v2]

Jorn Vernee jvernee at openjdk.org
Tue Mar 4 13:41:56 UTC 2025


On Mon, 24 Feb 2025 22:08:53 GMT, Chen Liang <liach at openjdk.org> wrote:

> we should just select a MH via hash table lookup and invoke that MH

I had something like this in an early prototype of the `tableSwitch` combinator, but it does not work, as it prevents the method handle calls for each case from being inlined.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23706#discussion_r1979445701


More information about the core-libs-dev mailing list