configuring with --with-jvm-variants=minimal,server makes cds disappear in server

Erik Joelsson erik.joelsson at oracle.com
Thu Jan 16 15:59:19 UTC 2020


This does indeed look like a bug to me. At least at Oracle, we no longer 
build any multi JVM configs regularly, so things like this falls through 
the cracks.

/Erik

On 2020-01-16 02:18, Baesken, Matthias wrote:
> Hello, I noticed the following  strange "feature" (or is it a bug?) .
> When  building 2 VM variants in one build  and  using
>
>    --with-jvm-variants=minimal,server
>
> For this, the build works nicely. But I notice that  in the server VM, cds  is removed.
> Instead of
>
> checking if cds should be enabled... yes
>
> I get ( with the following patch that adds tracing)  :
>
> configure: WARNING: ENABLE_CDS set to false because we found a minimal, core or zero JVM.
> checking if cds should be enabled... no
>    ...
>
> * JVM features:   minimal: 'compiler1 minimal serialgc'       server: 'compiler1 compiler2 epsilongc g1gc jfr jni-check jvmti management nmt parallelgc serialgc services vm-structs'
>
> (patch is
>
> --- a/make/autoconf/hotspot.m4  Wed Jan 15 21:20:40 2020 -0800
> +++ b/make/autoconf/hotspot.m4  Thu Jan 16 10:24:43 2020 +0100
> @@ -528,6 +528,7 @@
>    if HOTSPOT_CHECK_JVM_VARIANT(zero) || HOTSPOT_CHECK_JVM_VARIANT(minimal) || HOTSPOT_CHECK_JVM_VARIANT(core); then
>       # ..except when the user explicitely requested it with --enable-jvm-features
>       if ! HOTSPOT_CHECK_JVM_FEATURE(cds); then
>         ENABLE_CDS="false"
> +      AC_MSG_WARN([ENABLE_CDS set to false because we found a minimal, core or zero JVM.])
>         if test "x$enable_cds" = "xyes"; then
>           AC_MSG_ERROR([CDS not implemented for variants zero, minimal, core. Remove --enable-cds.])
>         Fi
>
>
> Is it expected that  cds goes away in "server"   when  configuring  "--with-jvm-variants=minimal,server"   ?   Looks like a bug to me,  should it be fixed   (so that cds stays in the server   jvm-feature list) ?
>
>
> Thanks, Matthias
>



More information about the build-dev mailing list