<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi there,</p>
<p>I made a few experiments with CDS and AOT archives on the Eclipse
IDE and wanted to share my results here.<br>
I ran 4 Eclipse installations (my personal main Eclipse
installation is in a comment further down) with AppCDS and
-XX:AOTCache and I have written down my results here:
<a class="moz-txt-link-freetext" href="https://github.com/eclipse-platform/eclipse.platform/discussions/2060">https://github.com/eclipse-platform/eclipse.platform/discussions/2060</a></p>
<p>I think the Eclipse IDE is an interesting application to test as
it is a fairly big codebase with many classes loaded at runtime
(so it doesn't make it easy for Leyden's improvements) via OSGi.</p>
<p>I have used the latest EA build of JDK 26 (26-ea+6-582). Should I
use a different JDK build to test it?<br>
</p>
<p>Essentially my findings (which are relevant to this mailing list)
are the following:<br>
- There has been an error when creating the AOT archive but it was
still created and it was usable. I want to make sure that the
people here are aware of that error. To be honest, I did not
expect -XX:AOTCache to work that well with Eclipse.<br>
- While CDS seems to come with a noticeable improvement for
Eclipse startup time, -XX:AOTCache seems to have similar startup
times as CDS (not faster). This might be because of Eclipse's
class loading shenanigans.<br>
- It worked with an agent attached (The Lombok tooling for Eclipse
attaches an agent into the IDE, I think that's necessary to inject
itself into the Eclipse Java Compiler).<br>
</p>
<p><br>
</p>
<p>The error I got:</p>
<pre class="notranslate"><code class="notranslate">[0.074s][error][aot] An error has occurred while processing the AOT configuration file. Run with -Xlog:aot for details.
[0.074s][error][aot] archivedBootLayer not available, disabling full module graph
AOTCache creation is complete: app.aot 106397696 bytes
</code></pre>
<p></p>
<p>I provided the logs here: <a
href="https://github.com/user-attachments/files/21313886/AOT_logs_26ea.txt"
class="moz-txt-link-freetext">https://github.com/user-attachments/files/21313886/AOT_logs_26ea.txt</a>
(technically not the same run but it also has that error).<br>
</p>
<p><br>
</p>
Yours,<br>
Daniel Schmid<br>
</body>
</html>