RFR: 8357119: Make Zero the default and only variant of HotSpot for iOS [v3]

Magnus Ihse Bursie ihse at openjdk.org
Tue May 20 12:57:17 UTC 2025


On Mon, 19 May 2025 05:14:27 GMT, Julian Waters <jwaters at openjdk.org> wrote:

>> Currently, the Zero variant of HotSpot must be manually selected for mobile to compile properly for iOS, since iOS does not allow writeable and executable sections. Since Zero is, to my knowledge, the only valid HotSpot variant for iOS, this default should be handled by the build rather than require the developer to have specific knowledge about iOS and the mobile fork. I also took the opportunity to explicitly disallow selecting other JVM variants at all for iOS, this can be rolled back if my assumption turns out to be incorrect. While here, also touch up the build docs a little.
>
> Julian Waters has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Allow other JVMs again in hotspot.m4
>  - Improve README.md

README.md line 49:

> 47: If you need to tell configure the path of your boot JDK, or if configure fails with an error saying
> 48: it can't find a boot JDK, for instance if you downloaded a JDK in compressed archive form rather
> 49: than with an installer, you can pass `--with-boot-jdk=<java-directory-path>` to configure:

Suggestion:

than with an installer, you can pass `--with-boot-jdk=<java-directory-path>` to configure.

-------------

PR Review Comment: https://git.openjdk.org/mobile/pull/35#discussion_r2097892763


More information about the mobile-dev mailing list