RFR: 8266074: Vtable-based CHA implementation

Vladimir Ivanov vlivanov at openjdk.java.net
Fri Apr 30 20:38:56 UTC 2021

On Fri, 30 Apr 2021 20:24:23 GMT, John R Rose <jrose at openjdk.org> wrote:

> Are get getting closer to being able to apply CHA to interfaces?

Yes! Though it is always the case now that any interface method case can be strength-reduced to a virtual call (due to unique implementor constraint), I deliberately kept interface dispatch support in place. Once there's a reliable way to enumerate all implementors, it becomes straightforwad to apply CHA when interface type information can be trusted. 

And, as a first step, it would be very interesting to experiment with sealed interface support .


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

More information about the hotspot-compiler-dev mailing list