RFR: 8265711: C1: Intrinsify Class.getModifier method [v3]

Tobias Hartmann thartmann at openjdk.java.net
Wed Apr 28 10:58:51 UTC 2021


On Wed, 28 Apr 2021 06:43:19 GMT, Yi Yang <yyang at openjdk.org> wrote:

>> It's relatively a common case to get modifiers from a constant Class instance, i.e. ThirdPartyClass.class.getModifiers(). Currently, C1 Canonicalizer missed the opportunity of replacing Class.getModifiers intrinsic calls with compile-time constants.
>
> Yi Yang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   rename; redundant reloading

Looks good to me.

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

Marked as reviewed by thartmann (Reviewer).

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


More information about the hotspot-compiler-dev mailing list