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

Christian Hagedorn chagedorn at openjdk.org
Thu Jun 23 07:20:55 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).

Looks good!

> 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.

I was wondering the same thing. The code becomes much cleaner if we would allow this.

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

Marked as reviewed by chagedorn (Reviewer).

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


More information about the hotspot-compiler-dev mailing list