8341377: Update VMProps.isCDSRuntimeOptionsCompatible to include Parallel and Serial GC
Reviewed-by: dholmes, shade
This commit is contained in:
parent
42f32551cd
commit
beb2a51b12
@ -479,12 +479,14 @@ public class VMProps implements Callable<Map<String, String>> {
|
||||
}
|
||||
String CCP_DISABLED = "-XX:-UseCompressedClassPointers";
|
||||
String G1GC_ENABLED = "-XX:+UseG1GC";
|
||||
String PARALLELGC_ENABLED = "-XX:+UseParallelGC";
|
||||
String SERIALGC_ENABLED = "-XX:+UseSerialGC";
|
||||
for (String opt : jtropts.split(",")) {
|
||||
if (opt.equals(CCP_DISABLED)) {
|
||||
return false;
|
||||
}
|
||||
if (opt.startsWith(GC_PREFIX) && opt.endsWith(GC_SUFFIX) &&
|
||||
!opt.equals(G1GC_ENABLED)) {
|
||||
!opt.equals(G1GC_ENABLED) && !opt.equals(PARALLELGC_ENABLED) && !opt.equals(SERIALGC_ENABLED)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user