--- old/src/hotspot/share/runtime/arguments.cpp 2020-06-10 11:20:57.443941834 -0700 +++ new/src/hotspot/share/runtime/arguments.cpp 2020-06-10 11:20:57.139930390 -0700 @@ -1467,6 +1467,12 @@ value = &prop[key_len + 1]; } + if (is_internal_module_property(key) || + strcmp(key, "jdk.module.main") == 0) { + MetaspaceShared::disable_optimized_module_handling(); + log_info(cds)("Using optimized module handling disabled due to incompatible property: %s=%s", key, value); + } + if (strcmp(key, "java.compiler") == 0) { process_java_compiler_argument(value); // Record value in Arguments, but let it get passed to Java. @@ -2510,6 +2516,8 @@ // -bootclasspath/a: } else if (match_option(option, "-Xbootclasspath/a:", &tail)) { Arguments::append_sysclasspath(tail); + MetaspaceShared::disable_optimized_module_handling(); + log_info(cds)("Using optimized module handling disabled due to bootclasspath was appended"); // -bootclasspath/p: } else if (match_option(option, "-Xbootclasspath/p:", &tail)) { jio_fprintf(defaultStream::output_stream(),