mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8277481: Obsolete seldom used CDS flags
Reviewed-by: iklam, ccheung, dholmes
This commit is contained in:
parent
23fd9f15da
commit
14f7385a72
13 changed files with 58 additions and 130 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue