RFR 8211838 (XS): Minimal VM build is broken after JDK-8202951 (Implementation of JEP 341: Default CDS Archives)

Volker Simonis volker.simonis at gmail.com
Mon Oct 8 08:34:51 UTC 2018


Hi Aleksey,

I've just posted a fix for this issue as well (the AIX build is broken as well).

http://mail.openjdk.java.net/pipermail/build-dev/2018-October/023559.html

Instead of checking the JVM_VARIANT, I check for ENABLE_CDS. But as
far as I see, that still doesn't help for the 'minmal' variant. I
think the right fix would be to set ENABLE_CDS to false for the
minimal build. I could add that to my fix if you're all right with it?

Regards,
Volker
On Mon, Oct 8, 2018 at 9:54 AM Aleksey Shipilev <shade at redhat.com> wrote:
>
> Bug:
>   https://bugs.openjdk.java.net/browse/JDK-8211838
>
> Seems like Minimal VM has CDS disabled as VM feature, which means it would fail during CDS archive
> generation at the end of the build. It looks like the situation Zero is in, so the quick fix is:
>
> diff -r f697ba5b18d2 make/autoconf/jdk-options.m4
> --- a/make/autoconf/jdk-options.m4      Mon Oct 08 13:25:39 2018 +0800
> +++ b/make/autoconf/jdk-options.m4      Mon Oct 08 09:34:16 2018 +0200
> @@ -609,10 +609,11 @@
>  ################################################################################
>  #
>  # Disable the default CDS archive generation
>  #   cross compilation - disabled
>  #   zero              - off by default (not a tested configuration)
> +#   minimal           - off by default (not a tested configuration)
>  #
>  AC_DEFUN([JDKOPT_ENABLE_DISABLE_CDS_ARCHIVE],
>  [
>    AC_ARG_ENABLE([cds-archive], [AS_HELP_STRING([--disable-cds-archive],
>        [Set to disable generation of a default CDS archive in the product image @<:@enabled@:>@])])
> @@ -625,10 +626,13 @@
>      AC_MSG_RESULT([yes, forced])
>      BUILD_CDS_ARCHIVE="true"
>    elif HOTSPOT_CHECK_JVM_VARIANT(zero); then
>      AC_MSG_RESULT([no])
>      BUILD_CDS_ARCHIVE="false"
> +  elif HOTSPOT_CHECK_JVM_VARIANT(minimal); then
> +    AC_MSG_RESULT([no])
> +    BUILD_CDS_ARCHIVE="false"
>    elif test "x$enable_cds_archive" = "x"; then
>      AC_MSG_RESULT([yes])
>      BUILD_CDS_ARCHIVE="true"
>    elif test "x$enable_cds_archive" = "xno"; then
>      AC_MSG_RESULT([no, forced])
>
> I think a good follow-up would be actually checking for "cds" as feature, and disabling cds-archive
> based on that. I think --with-jvm-features=-cds fails the same way.
>
> Testing: x86_64 Minimal/Server builds
>
> Thanks,
> -Aleksey
>


More information about the hotspot-runtime-dev mailing list