RFR: 8292891: ifdef-out some CDS-only functions

Ioi Lam iklam at openjdk.org
Wed Aug 24 22:38:16 UTC 2022


Some CDS functions are always compiled, even when CDS is not enabled (e.g., for the minimal VM).

This RFE puts some of the obvious ones inside `#if INCLUDE_CDS` blocks. 

Note: my goal is not to make the minimal VM as small as possible. But rather, I don't want to put `#if INCLUDE_CDS` inside each of those functions that access a CDS-only feature. (E.g., `ConstantPoolCache::save_for_archive`, which accesses `_initial_entries`, which is declared only when CDS is enabled).

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

Commit messages:
 - 8292891: ifdef-out some CDS-only functions

Changes: https://git.openjdk.org/jdk/pull/10010/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10010&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8292891
  Stats: 49 lines in 15 files changed: 34 ins; 11 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/10010.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10010/head:pull/10010

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


More information about the hotspot-dev mailing list