RFR: 8324259: Classes used by CDS at runtime should be archived
Matias Saavedra Silva
matsaave at openjdk.org
Fri Sep 27 22:36:56 UTC 2024
The following classes are not included in the archive at dumptime but are used at runtime when loading the archive:
[0.248s][info][class,load] java.nio.file.FileSystems source: jrt:/java.base loader: boot_loader
[0.248s][info][class,load] java.nio.file.FileSystems$DefaultFileSystemHolder source: jrt:/java.base loader: boot_loader
[0.249s][info][class,load] java.nio.file.FileSystems$DefaultFileSystemHolder$1 source: jrt:/java.base loader: boot_loader
[0.254s][info][class,load] java.net.URI$Parser source: jrt:/java.base loader: boot_loader
This patch makes a dummy call at dumptime to archive these classes. Verified with tier 1-5 tests.
-------------
Commit messages:
- Added regression test
- 8324259: Classes used by CDS at runtime should be archived
Changes: https://git.openjdk.org/jdk/pull/21232/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21232&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8324259
Stats: 78 lines in 3 files changed: 78 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/21232.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/21232/head:pull/21232
PR: https://git.openjdk.org/jdk/pull/21232
More information about the hotspot-runtime-dev
mailing list