Removing -XX:+AOTClassLinking support for dynamic CDS archive
ioi.lam at oracle.com
ioi.lam at oracle.com
Wed Sep 10 19:13:10 UTC 2025
I've filed https://bugs.openjdk.org/browse/JDK-8367366 to remove
-XX:+AOTClassLinking support for dynamic CDS archive. Any objections?
Background: we needed this for the old (and removed) "5 step workflow"
in early Leyden development. And it somehow leaked into the mainline
when we upstreamed JEP 483.
However, most (if not all) current and future Leyden optimizations will
depend on BOTH -XX:+AOTClassLinking and archive heap objects. Because we
don't support archived heap objects in the dynamic archive, so it won't
benefit from any of those optimization.
My main concerns are (1) code bloat, and (2) the chance of introducing
bugs when we add new optimizations without sufficient testing for the
dynamic archive. I think I actually have one such bug in
`fixup_module_field_list()` in https://github.com/openjdk/jdk/pull/26375
(preload classes from AOT cache).
Thanks
- Ioi
More information about the leyden-dev
mailing list