RFR: 8260471: Change SystemDictionary::X_klass calls to vmClasses::X_klass [v3]

Ioi Lam iklam at openjdk.java.net
Mon Feb 1 19:04:05 UTC 2021


> This is the second step of https://github.com/openjdk/jdk/pull/2246 (8260467: Move well-known classes from systemDictionary.hpp to vmClasses.hpp). These are mostly boiler-plate changes done by scripts.
> 
> [1]  Change calls like 
> 
> SystemDictionary::Object_klass()
> SystemDictionary::Throwable_klass_is_loaded()
> SystemDictionary::box_klass_type()
> 
> to 
> 
> vmClasses::Object_klass()
> vmClasses::Throwable_klass_is_loaded()
> vmClasses::box_klass_type()
> 
> [2] Remove unnecessary inclusion of systemDictionary.hpp (replace with vmClasses.hpp if necessary). In some cases, I have to add signature.hpp to some files, which only indirectly included signature.hpp through systemDictionary.hpp.
> 
> [3] In the previous PR, I incorrectly used the enum name `VMClassID`. This PR changes it to `vmClassID` to match the existing use of `vmSymbolID` and `vmIntrinsicID`.
> 
> Due to the refactoring of these two PRs, the number of HotSpot .o files that include systemDictionary.hpp decreases from 491 to 91. HotSpot build time is reduced by about 2%
> 
> Tested with mach5: tier1, builds-tier2, builds-tier3, builds-tier4 and builds-tier5. Also locally: aarch64, arm, ppc64, s390, x86, and zero.
> 
> Review Notes: if you don't want to scroll through 185 files, you may want to try:
> 
> curl https://github.com/openjdk/jdk/compare/1de3c554477497d1ceee573180940e8d38c364ee...e2f77252c8b3edd4d0071cfc014290568a16de9d.diff | \
>   grep -v '^[+-][+-][+-]' | grep '^[+-]'

Ioi Lam has updated the pull request incrementally with one additional commit since the last revision:

  fixed AOT build

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/2301/files
  - new: https://git.openjdk.java.net/jdk/pull/2301/files/e1a09411..8df077d4

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

  Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2301.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2301/head:pull/2301

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


More information about the shenandoah-dev mailing list