Draft JEP 8315737: AOT Linked Classes
ioi.lam at oracle.com
ioi.lam at oracle.com
Tue Jul 9 05:32:08 UTC 2024
On 7/8/24 6:52 AM, Volker Simonis wrote:
> The way you describe the manual usage of CDS is "old" and quite
> cumbersome. Why not use the new -XX:+AutoCreateSharedArchive option
> which automatically creates the archive if non is available. Or does
> -XX:+AOTLoadedClasses not work together with
> -XX:+AutoCreateSharedArchive and if so, why not?
-XX:+AutoCreateSharedArchive is for creating dynamic CDS archives only.
It cannot be used for creating static CDS archives.
-XX:+AOTLoadedClasses works for both dynamic and static CDS archives.
However, as part of this JEP, to demonstrate its promises, we will also
implement one significant optimization that relies on
-XX:+AOTLoadedClasses:
JDK-8293336 Store LambdaForms in CDS archive heap
JDK-8293336 works only for the static CDS archive (it requires archiving
Java heap objects, which is not supported by dynamic CDS archives).
Thanks
- Ioi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/leyden-dev/attachments/20240708/9d8c7c20/attachment.htm>
More information about the leyden-dev
mailing list