8318484: Initial version of cdsConfig.hpp

Reviewed-by: dholmes, ccheung, sspitsyn
This commit is contained in:
Ioi Lam 2023-10-21 15:43:36 +00:00
parent a876beb63d
commit ecd25e7d6f
36 changed files with 220 additions and 111 deletions

View file

@ -24,6 +24,7 @@
#include "precompiled.hpp"
#include "cds/cds_globals.hpp"
#include "cds/cdsConfig.hpp"
#include "cds/filemap.hpp"
#include "classfile/classLoader.hpp"
#include "classfile/javaAssertions.hpp"
@ -1332,7 +1333,7 @@ const char* unsupported_options[] = { "--limit-modules",
"--patch-module"
};
void Arguments::check_unsupported_dumping_properties() {
assert(is_dumping_archive(),
assert(CDSConfig::is_dumping_archive(),
"this function is only used with CDS dump time");
assert(ARRAY_SIZE(unsupported_properties) == ARRAY_SIZE(unsupported_options), "must be");
// If a vm option is found in the unsupported_options array, vm will exit with an error message.
@ -3451,7 +3452,7 @@ void Arguments::init_shared_archive_paths() {
int archives = num_archives(SharedArchiveFile);
assert(archives > 0, "must be");
if (is_dumping_archive() && archives > 1) {
if (CDSConfig::is_dumping_archive() && archives > 1) {
vm_exit_during_initialization(
"Cannot have more than 1 archive file specified in -XX:SharedArchiveFile during CDS dumping");
}