8322322: Support archived full module graph when -Xbootclasspath/a is used

Reviewed-by: alanb, mchung
This commit is contained in:
Calvin Cheung 2024-01-05 00:00:24 +00:00
parent 3fbccb01dc
commit 3b1e56a427
4 changed files with 53 additions and 14 deletions

View file

@ -2215,10 +2215,6 @@ jint Arguments::parse_each_vm_init_arg(const JavaVMInitArgs* args, bool* patch_m
// -bootclasspath/a:
} else if (match_option(option, "-Xbootclasspath/a:", &tail)) {
Arguments::append_sysclasspath(tail);
#if INCLUDE_CDS
MetaspaceShared::disable_optimized_module_handling();
log_info(cds)("optimized module handling: disabled because bootclasspath was appended");
#endif
// -bootclasspath/p:
} else if (match_option(option, "-Xbootclasspath/p:", &tail)) {
jio_fprintf(defaultStream::output_stream(),