RFR: 8265711: C1: Canonicalize Class.getModifier intrinsic method [v2]

Yi Yang yyang at openjdk.java.net
Tue Apr 27 09:40:11 UTC 2021


> 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - add missing stuff; change according to review comment
 - Merge branch 'master' into canon_opt
 - canonicalize well-chosen intrinsic methods

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/3616/files
  - new: https://git.openjdk.java.net/jdk/pull/3616/files/fad55ab0..76f5bfa9

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=3616&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=3616&range=00-01

  Stats: 45304 lines in 1125 files changed: 9465 ins; 32430 del; 3409 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3616.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3616/head:pull/3616

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


More information about the hotspot-compiler-dev mailing list