RFR: 8265711: C1: Canonicalize Class.getModifier intrinsic method

Yi Yang yyang at openjdk.java.net
Mon Apr 26 06:33:30 UTC 2021

On Thu, 22 Apr 2021 07:02:29 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.

Can I have a review of this PR? Thanks!


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

More information about the hotspot-compiler-dev mailing list