The jlink tool can be used to create a custom run-time image that behaves substantially different to the base JDK, e.g., by adding and enabling a custom JIT compiler via JVMCI. The resulting image should be customizable to reflect this, e.g., to allow proper feature detection by user code.
While jlink allows certain system properties to be overridden, it does not allow setting java.vendor, java.vendor.url, java.vm.vendor. The only way to set these values currently is at JDK configure time[1].
JDK-8232080 added a jlink plugin to customize properties such as java.vendor.url.bug and java.vendor.version. This functionality could be extended to also cover java.vendor, java.vm.vendor and java.vendor.url.
[1] https://github.com/openjdk/jdk/blob/master/make/autoconf/jdk-version.m4#L101-L130
While jlink allows certain system properties to be overridden, it does not allow setting java.vendor, java.vendor.url, java.vm.vendor. The only way to set these values currently is at JDK configure time[1].
[1] https://github.com/openjdk/jdk/blob/master/make/autoconf/jdk-version.m4#L101-L130
- csr for
-
JDK-8345511 jlink plugins for setting java.vendor, java.vm.vendor and java.vendor.url
-
- Provisional
-
- relates to
-
JDK-8232080 jlink plugins for vendor information and command-line options
-
- Resolved
-
- links to
-
Review(master) openjdk/jdk/21964