Skip to content

Commit

Permalink
Enable String Deduplication on JDK 17+
Browse files Browse the repository at this point in the history
Only enable on JDK 17+ due to
https://bugs.openjdk.org/browse/JDK-8277981
  • Loading branch information
schlosna committed Aug 11, 2022
1 parent 9e5fc9d commit c9747ef
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public abstract class LaunchConfigTask extends DefaultTask {
private static final ImmutableList<String> java15Options =
ImmutableList.of("-XX:+UnlockDiagnosticVMOptions", "-XX:+ExpandSubTypeCheckAtParseTime");
private static final ImmutableList<String> java17PlusOptions = ImmutableList.of(
"-XX:+UseStringDeduplication", // only enable on JDK 17+ due to https://bugs.openjdk.org/browse/JDK-8277981
"-Xlog:async"); // remove if/when async is default, see https://bugs.openjdk.org/browse/JDK-8291898
private static final ImmutableList<String> disableBiasedLocking = ImmutableList.of("-XX:-UseBiasedLocking");
// Disable C2 compilation for problematic structure in JDK 11.0.16, see https://bugs.openjdk.org/browse/JDK-8291665
Expand Down

0 comments on commit c9747ef

Please sign in to comment.