Add static-jdk build in GHA
Jiangli Zhou
jianglizhou at google.com
Tue Feb 4 22:30:29 UTC 2025
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.
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!
Clean builds
==========
jdk-image:
----------------
release: real 2m20.327s
fastdebug: real 3m0.262s
static-jdk-image:
----------------------
release: real 2m51.024s
fastdebug: real 4m11.928s
Best,
Jiangli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/build-dev/attachments/20250204/df2c9e9b/attachment-0001.htm>
More information about the build-dev
mailing list