<div dir="ltr">With the current state of JDK mainline for static JDK support, it's a good time to add 'static-jdk' build as a minimum/initial pre-integration check in GHA. It helps catch regressions accidentally introduced in any new changes that could break the static JDK build (e.g. duplicate symbols in different JDK native libraries). We have also discussed this topic during the on-going hermetic Java zoom meetings with Ron, Alan, Magnus and others. As a starting point, we can add release and fastdebug static-jdk builds on linux-x64 for now, and then expand to other platforms when appropriate.<div><br></div><div>Here are some measurements that I collected from building jdk-image and static-jdk-image for release and fastdebug binaries on my local linux x64 machine (with gcc as the default). For release build, building jdk-image and static-jdk-image takes about the same real time. For fastdebug, building a static-jdk-image takes ~1m more than building a jdk-image on my linux machine. Thoughts and additional suggestions are welcome!</div><div><br></div><div>Clean builds</div><div>==========</div><div><br></div><div>jdk-image: </div><div>----------------</div><div>release: real 2m20.327s</div><div>fastdebug: real 3m0.262s</div><div><br></div><div>static-jdk-image:</div><div>----------------------</div><div>release: real 2m51.024s</div><div>fastdebug: real 4m11.928s</div><div><br></div><div>Best,</div><div>Jiangli</div></div>