RFR: 8261672: Reduce inclusion of classLoaderData.hpp [v2]

Ioi Lam iklam at openjdk.java.net
Sat Feb 13 05:45:58 UTC 2021


> classLoaderData.hpp is included by about 700 out of 1000 .o files in HotSpot. Most of these are transitively included through klass.hpp, typeArrayKlass.hpp and instanceKlass.hpp.
> 
> These headers can be refactored by moving inline functions that depend on ClassLoaderData to xxx.inline.hpp. This reduces the .o files that include classLoaderData.hpp to about 260.
> 
> (I also removed a bunch of unnecessary inclusion of classLoader.hpp from a few C files).
>  
> Tested with mach5: tier1, builds-tier2, builds-tier3, builds-tier4 and builds-tier5. Also locally: aarch64, arm, ppc64, s390, x86, and zero.

Ioi Lam 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 four additional commits since the last revision:

 - fixed copyright
 - Merge branch 'master' into 8261672-reduce-classLoaderData.hpp
 - 8261672: Reduce inclusion of classLoaderData.hpp
 - reduce classLoader.hpp

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/2555/files
  - new: https://git.openjdk.java.net/jdk/pull/2555/files/96f3b680..ea396957

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

  Stats: 4352 lines in 164 files changed: 2494 ins; 690 del; 1168 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2555.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2555/head:pull/2555

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


More information about the hotspot-dev mailing list