8277481: Obsolete seldom used CDS flags

Reviewed-by: iklam, ccheung, dholmes
This commit is contained in:
Harold Seigel 2021-12-13 13:35:37 +00:00
parent 23fd9f15da
commit 14f7385a72
13 changed files with 58 additions and 130 deletions

View file

@ -66,7 +66,7 @@ public class CDS {
}
/**
* Is sharing enabled via the UseSharedSpaces flag.
* Is sharing enabled.
*/
public static boolean isSharingEnabled() {
return isSharingEnabled;
@ -232,15 +232,11 @@ public class CDS {
private static String[] excludeFlags = {
"-XX:DumpLoadedClassList=",
"-XX:+DumpSharedSpaces",
"-XX:+DynamicDumpSharedSpaces",
"-XX:+RecordDynamicDumpInfo",
"-Xshare:",
"-XX:SharedClassListFile=",
"-XX:SharedArchiveFile=",
"-XX:ArchiveClassesAtExit=",
"-XX:+UseSharedSpaces",
"-XX:+RequireSharedSpaces"};
"-XX:ArchiveClassesAtExit="};
private static boolean containsExcludedFlags(String testStr) {
for (String e : excludeFlags) {
if (testStr.contains(e)) {