RFR: 8266550: C2: mirror TypeOopPtr/TypeInstPtr/TypeAryPtr with TypeKlassPtr/TypeInstKlassPtr/TypeAryKlassPtr [v2]
Roland Westrelin
roland at openjdk.java.net
Tue Jun 8 09:31:16 UTC 2021
On Mon, 7 Jun 2021 20:34:59 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:
> > TypeAryKlassPtr meets TypeInstKlassPtr would give a TypeKlassPtr (same as TypeAryPtr meets TypeInstPtr gives a TypeOopPtr).
>
> Can you point me to the relevant code, please? What I'm seeing so far is that, in constrast to `TypeOopPtr`, `TypeKlassPtr` is never instantiated at runtime and `TypeKlassPtr*` always points to either `TypeInstKlassPtr` or `TypeAryKlassPtr`.
You're right about that (my reply was incorrect). I don't understand why it matters this said. TypeKlassPtr is for pointers to classes that are not known to be a instance class or` an array class. That might prove useful at some point.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3880
More information about the hotspot-compiler-dev
mailing list