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

Yi Yang yyang at openjdk.java.net
Wed Apr 28 06:43:19 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 incrementally with one additional commit since the last revision:

  rename; redundant reloading

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

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

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

  Stats: 5 lines in 1 file changed: 0 ins; 1 del; 4 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