equal
deleted
inserted
replaced
23 */ |
23 */ |
24 |
24 |
25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
26 #include "classfile/classLoader.hpp" |
26 #include "classfile/classLoader.hpp" |
27 #include "classfile/javaAssertions.hpp" |
27 #include "classfile/javaAssertions.hpp" |
|
28 #include "classfile/moduleEntry.hpp" |
28 #include "classfile/stringTable.hpp" |
29 #include "classfile/stringTable.hpp" |
29 #include "classfile/symbolTable.hpp" |
30 #include "classfile/symbolTable.hpp" |
30 #include "code/codeCacheExtensions.hpp" |
31 #include "code/codeCacheExtensions.hpp" |
31 #include "gc/shared/cardTableRS.hpp" |
32 #include "gc/shared/cardTableRS.hpp" |
32 #include "gc/shared/genCollectedHeap.hpp" |
33 #include "gc/shared/genCollectedHeap.hpp" |
3425 void Arguments::add_patch_mod_prefix(const char* module_name, const char* path, bool* patch_mod_javabase) { |
3426 void Arguments::add_patch_mod_prefix(const char* module_name, const char* path, bool* patch_mod_javabase) { |
3426 // For java.base check for duplicate --patch-module options being specified on the command line. |
3427 // For java.base check for duplicate --patch-module options being specified on the command line. |
3427 // This check is only required for java.base, all other duplicate module specifications |
3428 // This check is only required for java.base, all other duplicate module specifications |
3428 // will be checked during module system initialization. The module system initialization |
3429 // will be checked during module system initialization. The module system initialization |
3429 // will throw an ExceptionInInitializerError if this situation occurs. |
3430 // will throw an ExceptionInInitializerError if this situation occurs. |
3430 if (strcmp(module_name, "java.base") == 0) { |
3431 if (strcmp(module_name, JAVA_BASE_NAME) == 0) { |
3431 if (*patch_mod_javabase) { |
3432 if (*patch_mod_javabase) { |
3432 vm_exit_during_initialization("Cannot specify java.base more than once to --patch-module"); |
3433 vm_exit_during_initialization("Cannot specify " JAVA_BASE_NAME " more than once to --patch-module"); |
3433 } else { |
3434 } else { |
3434 *patch_mod_javabase = true; |
3435 *patch_mod_javabase = true; |
3435 } |
3436 } |
3436 } |
3437 } |
3437 |
3438 |