8336147: Clarify CDS documentation about static vs dynamic archive

Reviewed-by: ccheung, shade
This commit is contained in:
Ioi Lam 2025-07-03 23:54:05 +00:00
parent 16af473397
commit 854de8c9c6

View File

@ -3757,9 +3757,10 @@ general form:
be loaded on top of those in the `<static_archive>`.
- On Windows, the above path delimiter `:` should be replaced with `;`
(The names "static" and "dynamic" are used for historical reasons.
The only significance is that the "static" archive is loaded first and
the "dynamic" archive is loaded second).
The names "static" and "dynamic" are used for historical reasons. The dynamic
archive, while still useful, supports fewer optimizations than
available for the static CDS archive. If the full set of CDS/AOT
optimizations are desired, consider using the AOT cache described below.
The JVM can use up to two archives. To use only a single `<static_archive>`,
you can omit the `<dynamic_archive>` portion: