RFR: 6312651: Compiler should only use verified interface types for optimization [v3]
Vladimir Ivanov
vlivanov at openjdk.org
Fri Nov 11 00:18:30 UTC 2022
On Thu, 10 Nov 2022 23:58:54 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:
>> How would that work? ciArrayKlass::interfaces() has to transition into the vm which is not something that would feel right in type.cpp.
>
> Indeed, good point.
>
> IMO you could just work directly with CI mirrors for `Serializable` and `Cloneable`, but now I'm curious why does CI code diverge from `ObjArrayKlass::compute_secondary_supers()`?
> https://github.com/openjdk/jdk/blob/master/src/hotspot/share/oops/objArrayKlass.cpp#L376
And to answer my question: only `Serializable` and `Cloneable` are interfaces among those. The rest are arrays.
-------------
PR: https://git.openjdk.org/jdk/pull/10901
More information about the hotspot-compiler-dev
mailing list