RFR: JDK-8280503: Use allStatic.hpp instead of allocation.hpp where possible

Thomas Stuefe stuefe at openjdk.java.net
Sat Jan 22 18:03:27 UTC 2022


JDK-8249944 moved AllStatic to its own header. We should use that one instead of allocation.hpp where possible to reduce header dependencies.

This patch:
- replaces includes of allocation.hpp with allstatic.hpp where appropiate
- fixes up resulting errors since this changes uncovers missing dependencies. Mainly, missing includes of debug.hpp, of globalDefinitions.hpp, and missing outputStream definitions.

Changes are trivial but onerous. Done partly with a script, partly manually.

Test:
- Checked the build with gtests on Linux x86, x64, minimal, zero, aarch64, for both fastdebug and release. All builds of course without PCH.
- GHAs

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

Commit messages:
 - fix copyrights
 - start

Changes: https://git.openjdk.java.net/jdk/pull/7188/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7188&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8280503
  Stats: 365 lines in 170 files changed: 32 ins; 0 del; 333 mod
  Patch: https://git.openjdk.java.net/jdk/pull/7188.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/7188/head:pull/7188

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


More information about the shenandoah-dev mailing list