mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8193213: Make the UseAppCDS option obsolete
8182731: Odd handling of -XX:-UseAppCDS and -XX:SharedArchiveFile Application class data sharing is enabled without -XX:+UseAppCDS. SharedArchiveFile is now a product flag. Reviewed-by: dholmes, ihse, erikj, ccheung
This commit is contained in:
parent
cdd3f0ac39
commit
20edc74068
33 changed files with 189 additions and 238 deletions
|
@ -545,6 +545,7 @@ static SpecialFlag const special_jvm_flags[] = {
|
|||
{ "SharedMiscDataSize", JDK_Version::undefined(), JDK_Version::jdk(10), JDK_Version::undefined() },
|
||||
{ "SharedMiscCodeSize", JDK_Version::undefined(), JDK_Version::jdk(10), JDK_Version::undefined() },
|
||||
{ "UseUTCFileTimestamp", JDK_Version::undefined(), JDK_Version::jdk(11), JDK_Version::jdk(12) },
|
||||
{ "UseAppCDS", JDK_Version::undefined(), JDK_Version::jdk(11), JDK_Version::jdk(12) },
|
||||
|
||||
#ifdef TEST_VERIFY_SPECIAL_JVM_FLAGS
|
||||
{ "dep > obs", JDK_Version::jdk(9), JDK_Version::jdk(8), JDK_Version::undefined() },
|
||||
|
@ -3889,14 +3890,6 @@ jint Arguments::match_special_option_and_act(const JavaVMInitArgs* args,
|
|||
vm_exit(0);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (match_option(option, "-XX:+UseAppCDS")) {
|
||||
JVMFlag* flag = JVMFlag::find_flag("SharedArchiveFile", 17, true, true);
|
||||
if (flag->is_diagnostic()) {
|
||||
flag->clear_diagnostic();
|
||||
}
|
||||
continue;
|
||||
}
|
||||
}
|
||||
return JNI_OK;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue