RFR: 8288968: C2: remove use of covariant returns in type.[ch]pp

Xin Liu xliu at openjdk.org
Thu Jun 23 07:02:54 UTC 2022


On Wed, 22 Jun 2022 12:15:16 GMT, Roland Westrelin <roland at openjdk.org> wrote:

> This removes some use of covariant returns that I added with 8275201
> (C2: hide klass() accessor from TypeOopPtr and typeKlassPtr
> subclasses).

your patch looks good to me.  I am not a reviewer.
 
Why don't we just change the hotspot codestyle instead? This patch shows that the feature is useful in type.hpp and it does simplify code.

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

Marked as reviewed by xliu (Committer).

PR: https://git.openjdk.org/jdk/pull/9237


More information about the hotspot-compiler-dev mailing list