src/share/vm/runtime/arguments.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Cdiff src/share/vm/runtime/arguments.cpp

src/share/vm/runtime/arguments.cpp

Print this page

        

*** 1332,1354 **** "--upgrade-module-path", // ignored at dump time "--add-modules", // ignored at dump time "--patch-module" // ignored at dump time }; assert(ARRAY_SIZE(unsupported_properties) == ARRAY_SIZE(unsupported_options), "must be"); ! // If a vm option is found in the unsupported_options array with index less than the warning_idx, ! // vm will exit with an error message. Otherwise, it will result in a warning message. ! uint warning_idx = 2; SystemProperty* sp = system_properties(); while (sp != NULL) { for (uint i = 0; i < ARRAY_SIZE(unsupported_properties); i++) { if (strcmp(sp->key(), unsupported_properties[i]) == 0) { ! if (i < warning_idx) { vm_exit_during_initialization( "Cannot use the following option when dumping the shared archive", unsupported_options[i]); } else { ! warning( ! "the %s option is ignored when dumping the shared archive", unsupported_options[i]); } } } sp = sp->next(); } --- 1332,1357 ---- "--upgrade-module-path", // ignored at dump time "--add-modules", // ignored at dump time "--patch-module" // ignored at dump time }; assert(ARRAY_SIZE(unsupported_properties) == ARRAY_SIZE(unsupported_options), "must be"); ! // If a vm option is found in the unsupported_options array with index less than the info_idx, ! // vm will exit with an error message. Otherwise, it will print an informational message if ! // PrintSharedSpaces is enabled. ! uint info_idx = 1; SystemProperty* sp = system_properties(); while (sp != NULL) { for (uint i = 0; i < ARRAY_SIZE(unsupported_properties); i++) { if (strcmp(sp->key(), unsupported_properties[i]) == 0) { ! if (i < info_idx) { vm_exit_during_initialization( "Cannot use the following option when dumping the shared archive", unsupported_options[i]); } else { ! if (PrintSharedSpaces) { ! tty->print_cr( ! "Info: the %s option is ignored when dumping the shared archive", unsupported_options[i]); ! } } } } sp = sp->next(); }
src/share/vm/runtime/arguments.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File