<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="moz-cite-prefix">On 7/8/24 6:52 AM, Volker Simonis
wrote:<br>
</div>
<blockquote type="cite" cite="mid:CA+3eh12x4rj4kLF4isopG9q8BVzjOeH52w+ULV0hsFCHA41zog@mail.gmail.com"><span style="white-space: pre-wrap">
</span>
<pre class="moz-quote-pre" wrap="">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?
</pre>
</blockquote>
<p>-XX:+AutoCreateSharedArchive is for creating dynamic CDS archives
only. It cannot be used for creating static CDS archives.<br>
<br>
-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: <br>
</p>
<p> JDK-8293336 Store LambdaForms in CDS archive heap<br>
</p>
<p>JDK-8293336 works only for the static CDS archive (it requires
archiving Java heap objects, which is not supported by dynamic CDS
archives).</p>
<p>Thanks</p>
<p>- Ioi<br>
</p>
<p></p>
</body>
</html>