next steps

Johan Vos johan.vos at gluonhq.com
Wed May 22 14:27:40 UTC 2024


Hi,

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.
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.

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.

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.

- Johan

[1] https://mail.openjdk.org/pipermail/mobile-dev/2024-May/000873.html
[2] https://github.com/johanvos/jdk/tree/statichotspot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/mobile-dev/attachments/20240522/d6b35584/attachment-0001.htm>


More information about the mobile-dev mailing list