CodeCacheExpansionSize too small for Zero on ppc32/ppc64
John Paul Adrian Glaubitz
glaubitz at physik.fu-berlin.de
Tue Nov 28 13:36:54 UTC 2017
Hi!
During my recent tests, I noticed that Zero fails to build on both ppc32
and ppc64 with the following error message:
Optimizing the exploded image
/home/glaubitz/openjdk/hs/build/linux-ppc64-normal-zero-release/jdk/bin/java -Xms64M -Xmx1600M -XX:ThreadStackSize=1536 -XX:+UseSerialGC -Xms32M -Xmx512M -XX:TieredStopAtLevel=1 -cp /home/glaubitz/openjdk/hs/build/linux-ppc64-normal-zero-release/buildtools/tools_jigsaw_classes --add-exports java.base/jdk.internal.module=ALL-UNNAMED build.tools.jigsaw.AddPackagesAttribute /home/glaubitz/openjdk/hs/build/linux-ppc64-normal-zero-release/jdk
uintx CodeCacheExpansionSize=32768 is outside the allowed range [ 65536 ... 18446744073709551615 ]
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
ExplodedImageOptimize.gmk:40: recipe for target '/home/glaubitz/openjdk/hs/build/linux-ppc64-normal-zero-release/jdk/_packages_attribute.done' failed
make[3]: *** [/home/glaubitz/openjdk/hs/build/linux-ppc64-normal-zero-release/jdk/_packages_attribute.done] Error 1
make[3]: Leaving directory '/home/glaubitz/openjdk/hs/make'
make/Main.gmk:361: recipe for target 'exploded-image-optimize' failed
make[2]: *** [exploded-image-optimize] Error 2
make[2]: Leaving directory '/home/glaubitz/openjdk/hs
Looking at ./src/hotspot/share/runtime/globals.hpp, CodeCacheExpansionSize
is set to be 32768 bytes:
define_pd_global(intx, CodeCacheExpansionSize, 32*K);
Interestingly, I have not run into this issue with Zero on x86_64 or SPARC
with other architectures currently being tested. Could it be that the
value of CodeCacheExpansionSize has a minimum limit on ppc*? If yes, should
we just increase it to 64k?
Or maybe we have to find the place where it enforces the value on ppc* to
be unconditionally 64k?
Thanks,
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz at debian.org
`. `' Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
More information about the hotspot-dev
mailing list