Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8321539

Minimal build is broken by JDK-8320935

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 23
    • 22, 23
    • hotspot
    • b02

    Backports

      Description

        When the JDK is configured with --with-jvm-variants='minimal'

        $ jdk/bin/java --version
        Error: Could not create the Java Virtual Machine.
        Error: A fatal exception has occurred. Program will exit.

        ===================
        The fix is:

        $ git diff
        diff --git a/src/hotspot/share/cds/cdsConfig.hpp b/src/hotspot/share/cds/cdsConfig.hpp
        index d7de147d20c..ec5352b3703 100644
        --- a/src/hotspot/share/cds/cdsConfig.hpp
        +++ b/src/hotspot/share/cds/cdsConfig.hpp
        @@ -52,7 +52,7 @@ class CDSConfig : public AllStatic {
           static void initialize() NOT_CDS_RETURN;
           static void check_system_property(const char* key, const char* value) NOT_CDS_RETURN;
           static void check_unsupported_dumping_properties() NOT_CDS_RETURN;
        - static bool check_vm_args_consistency(bool patch_mod_javabase, bool mode_flag_cmd_line) NOT_CDS_RETURN_(false);
        + static bool check_vm_args_consistency(bool patch_mod_javabase, bool mode_flag_cmd_line) NOT_CDS_RETURN_(true);

        Attachments

          Issue Links

            Activity

              People

                iklam Ioi Lam
                iklam Ioi Lam
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: