<div dir="ltr"><div>This looks good and having shorter configuration switches is better, IMO.</div><div><br></div><div>Thanks!<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 15, 2024 at 11:57 PM <<a href="mailto:ioi.lam@oracle.com">ioi.lam@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi folks,<br>
<br>
I've filed <a href="https://bugs.openjdk.org/browse/JDK-8338476" rel="noreferrer" target="_blank">https://bugs.openjdk.org/browse/JDK-8338476</a> to rename <br>
-XX:CacheDataStore.<br>
<br>
Any comments? Without any strong objections I will implement this shortly.<br>
<br>
Thanks<br>
<br>
- Ioi<br>
<br>
------------------------------------------<br>
<br>
As part of JEP 483, we are adding new -XX:AOTXxx flags (see JDK-8338017) <br>
for controlling ahead-of-time optimizations. The -XX:CacheDataStore flag <br>
in the leyden/premain should be renamed to be consistent with the new <br>
naming scheme.<br>
<br>
Also, -XX:CacheDataStore=foo has automagic behavior -- if foo exists, <br>
load it as the CDS archive; otherwise create foo at VM exit. While such <br>
automagic behavior might be convenient for desktop users, it's not <br>
particular useful for early adopters of Leyden -- i.e., developers who <br>
are packaging apps for cloud deployment. For example, to make sure that <br>
foo is created, you would need to remove it explicitly:<br>
<br>
rm -f foo<br>
java -XX:CacheDataStore=foo -cp app.jar ...<br>
<br>
Proposal:<br>
<br>
In JEP 483, AOTConfiguration is required for creating an AOTCache. E.g.,<br>
<br>
java -XX:AOTMode=create -XX:AOTCache=foo.aot \<br>
-XX:AOTConfiguration=foo.aotconfig \<br>
-cp app.jar ...<br>
<br>
In the leyden/premain branch, we allow the AOTConfiguration flag to be <br>
omitted. In this case, the application will be executed once and the <br>
AOTCache will be created at VM exit:<br>
<br>
java -XX:AOTMode=create -XX:AOTCache=foo.aot \<br>
-cp app.jar ...<br>
<br>
Also, in this mode, all Leyden optimizations (such as <br>
-XX:+StoreCachedCode) are enabled by default (this is the same behavior <br>
as with -XX:CacheDataStore).<br>
<br>
</blockquote></div>
<br>
<span style="background-color:rgb(255,255,255)"><font size="2">This electronic communication and the information and any files transmitted with it, or attached to it, are confidential and are intended solely for the use of the individual or entity to whom it is addressed and may contain information that is confidential, legally privileged, protected by privacy laws, or otherwise restricted from disclosure to anyone else. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, you are hereby notified that any use, copying, distributing, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. If you received this e-mail in error, please return the e-mail to the sender, delete it from your computer, and destroy any printed copy of it.</font></span>