Skip to content

Commit

Permalink
8341377: Update VMProps.isCDSRuntimeOptionsCompatible to include Para…
Browse files Browse the repository at this point in the history
…llel and Serial GC
  • Loading branch information
calvinccheung committed Oct 3, 2024
1 parent c43202b commit 52d8c5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/jtreg-ext/requires/VMProps.java
Original file line number Diff line number Diff line change
Expand Up @@ -478,12 +478,14 @@ protected boolean isCDSRuntimeOptionsCompatible() {
}
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;
}
}
Expand Down

0 comments on commit 52d8c5d

Please sign in to comment.