RFR: 8261106: Reduce inclusion of jniHandles.hpp
Harold Seigel
hseigel at openjdk.java.net
Thu Feb 4 15:03:42 UTC 2021
On Thu, 4 Feb 2021 01:31:39 GMT, Ioi Lam <iklam at openjdk.org> wrote:
> niHandles.hpp is included by about 800 out of 1000 HotSpot .o files. Most of these are transitively included from these header files, which don't actually need to include jniHandles.hpp.
>
> - ci/ciBaseObject.hpp
> - ci/ciMetadata.hpp
> - ci/ciObject.hpp
> - classfile/moduleEntry.hpp
> - gc/shared/gcVMOperations.hpp
> - jvmci/jvmciJavaClasses.hpp
> - runtime/thread.hpp
> - services/threadService.hpp
>
> Fixing these headers reduces the number of .o files that include jniHandles.hpp to 145.
>
> Note: 43 files were changed in this PR. Most of them were using jniHandles.hpp but were not including it directly.
>
> Tested with mach5: tier1, builds-tier2, builds-tier3, builds-tier4 and builds-tier5. Also locally: aarch64, arm, ppc64, s390, x86, and zero.
LGTM!
Harold
-------------
Marked as reviewed by hseigel (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/2393
More information about the shenandoah-dev
mailing list