RFR: JDK-8302989: Add missing INCLUDE_CDS checks

Matthias Baesken mbaesken at openjdk.org
Tue Feb 21 14:53:10 UTC 2023


The cds only coding in hotspot is usually guarded with the INCLUDE_CDS macro so that it can be removed at compile time in case the correct configure flags are set.
However at some places INCLUDE_CDS is missing and should be added.

One question - should (additionally to the UseSharedSpaces code section)  the DumpSharedSpaces code sections be guarded as well with INCLUDE_CDS macros ?

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

Commit messages:
 - JDK-8302989

Changes: https://git.openjdk.org/jdk/pull/12691/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12691&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8302989
  Stats: 55 lines in 5 files changed: 22 ins; 4 del; 29 mod
  Patch: https://git.openjdk.org/jdk/pull/12691.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12691/head:pull/12691

PR: https://git.openjdk.org/jdk/pull/12691


More information about the hotspot-dev mailing list