Build failing when disabling the serialgc

Julian Waters tanksherman27 at gmail.com
Thu Jun 20 08:48:29 UTC 2024


Hi Sanne,

The reason the build fails when disabling SerialGC is due to the build
process explicitly calling the newly compiled Java with
-XX:+UseSerialGC to do small workloads. This is not a bug in the JVM,
but rather an unfortunate consequence of the way the build system is
structured. I believe you would need to patch out certain uses of
-XX:+UseSerialGC in the build process with -XX:+UseG1GC instead for
this to work, see for instance the following line that shows up during
configure:

checking flags for boot jdk java command for small workloads...
-XX:+UseSerialGC -Xms32M -Xmx512M -XX:TieredStopAtLevel=1

I'm not sure whether it is a must to use SerialGC when compiling jmods
or doing other small workloads during the build process, but I'm
leaning towards it just being there to make the build more efficient

best regards,
Julian


More information about the build-dev mailing list