Soliciting opinions on JDK-8219412
Archie Cobbs
archie.cobbs at gmail.com
Mon Jan 9 16:20:06 UTC 2023
Thanks for the comments. Using invokedynamic makes perfect sense! (and I'm
disappointed I didn't think of it :)
I'll take a look into it and report back.
-Archie
On Mon, Jan 9, 2023 at 9:54 AM Maurizio Cimadamore <
maurizio.cimadamore at oracle.com> wrote:
> I agree with Brian. If we want to fix this and put our hands in the enum
> switch classification, I think the best use of our time would be to tweak
> enum switches to adopt the superior indy-based classification approach,
> which should be immune to the issue you present.
>
> Thanks
> Maurizio
> On 09/01/2023 15:35, Brian Goetz wrote:
>
> Another strategy is to use an `invokedynamic` as a switch classifier. (I
> believe there is even a bootstrap for this implemented somewhere.)
>
>
--
Archie L. Cobbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/compiler-dev/attachments/20230109/8b010855/attachment-0001.htm>
More information about the compiler-dev
mailing list