RFR: 8311302: Allow for jlinking a custom runtime without packaged modules being present [v20]
Mandy Chung
mchung at openjdk.org
Sat Mar 16 22:24:19 UTC 2024
On Fri, 15 Mar 2024 09:55:15 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:
> > If `--enable-runtime-link-image` is enabled, the JDK image does not include the packaged modules.
>
> That's not true. Right now `--enable-runtime-link-image` modifies how the `lib/modules` image looks like (adds a bunch of extra resources). That's it. It doesn't modify the setup of packaged modules.
It is true that they are orthogonal. jlink does allow to produce a linkable image with `--keep-packaged-modules` and the resulting JDK image would work.
However, the goal of this work is to produce a JDK image with smaller footprint. This is a question to JDK build to allow configuring building a linkable image with packaged modules.
In addition, `--enable-keep-packaged-modules` is enabled by default. Do you want the linkable image includes `jmods` as it's currently implemented in this PR? I assume not.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14787#issuecomment-2000322485
More information about the build-dev
mailing list