You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Packaging support for deploy JAR embedded JDK files (hermetic Java).
This is the initial implementation that supports packaging runtime needed JDK files into deploy JAR, which is part of the phase III development for hermetic Java support (b/212719968).
- The runtime needed JDK files specified via --resources flag are packaged as regular JAR entries in deploy JAR. Any JDK file that needs to be packaged at page aligned offset should not be included in --resource input list.
- JDK 'lib/modules' file has page alignment requirement (runtime mmap the modules image). A new singlejar flag is introduced for specifying the lib/modules file:
* --jdk_lib_modules <jdk_lib_modules_path>
Following manifest attribute is written in the JAR META-INF/MANIFEST.MF, if lib/modules is specified via the new flag:
* JDK-Lib-Modules-Offset: <offset>
The lib/modules offset information will be used at runtime in JDK when mapping the file.
Please see more details on design requirements/considerations and decisions in[]
The support for launcher part is handled by unknown commit.
RELNOTES: Packaging support for deploy JAR embedded JDK files (hermetic Java).
PiperOrigin-RevId: 437310998
0 commit comments