<div dir="ltr"><div class="gmail_default" style="font-family:monospace">This is extremely exciting.</div><div class="gmail_default" style="font-family:monospace"><br></div><div class="gmail_default" style="font-family:monospace">Please let us know if there is anything we can do to help out! <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 22, 2024 at 10:28 AM Johan Vos <<a href="mailto:johan.vos@gluonhq.com">johan.vos@gluonhq.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"><div dir="ltr">Hi,<div><br></div><div>As explained in a previous mail [1], I have a branch from the (almost) head of openjdk/jdk that allows to build the static JDK libs for iOS and Android. I can rebase this branch on top of the existing commits of the current openjdk/mobile head, but some of those commits are no longer needed.</div><div>Hence, I suggest that we start with a clean version, taken from the current openjdk/jdk so that I can create a PR against this clean state. In order to do so, I can first create a PR that reverts the current diff between mobile and jdk. </div><div><br></div><div>Apart from that, I am locally working on making changes in hotspot so that it allows to create an application with a launcher that is statically linked against libjvm.a, libjli.a and the native libs for the JDK classes. I created a simple launcher that I compile and link with the slightly modified VM libs (mainly #ifdef STATIC_BUILD). The branch I use for that slightly modified libs version is at [2] and it mainly contains additional debug info. </div><div><br></div><div>The latter is just an experiment, as I am personally unsure yet what VM would be optimal for being used in mobile -- especially given Apple's restriction on the dynamic generation of code.</div><div><br></div><div>- Johan</div><div><br></div><div>[1] <a href="https://mail.openjdk.org/pipermail/mobile-dev/2024-May/000873.html" target="_blank">https://mail.openjdk.org/pipermail/mobile-dev/2024-May/000873.html</a></div><div>[2] <a href="https://github.com/johanvos/jdk/tree/statichotspot" target="_blank">https://github.com/johanvos/jdk/tree/statichotspot</a></div></div>
</blockquote></div>