RFR: 8367366: Do not support -XX:+AOTClassLinking for dynamic CDS archive

Ioi Lam iklam at openjdk.org
Fri Sep 12 03:37:22 UTC 2025


Support of `-XX:+AOTClassLinking` for  dynamic CDS archive is not an documented feature of [JEP 483](https://openjdk.org/jeps/483). It has very small performance benefit and complicates the development of future AOT optimizations.

After this PR, `-XX:+AOTClassLinking` will have no effect when creating a dynamic CDS archive.

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

Commit messages:
 - No need to run runtime/cds/appcds/dynamicArchive with -XX:+AOTClassLinking as this flag will have no effect
 - 8367366: Do not support -XX:+AOTClassLinking for dynamic CDS archive

Changes: https://git.openjdk.org/jdk/pull/27242/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27242&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8367366
  Stats: 102 lines in 15 files changed: 8 ins; 68 del; 26 mod
  Patch: https://git.openjdk.org/jdk/pull/27242.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27242/head:pull/27242

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


More information about the hotspot-dev mailing list