Skip to content

Commit

Permalink
Revert "Enable String Deduplication on JDK 17+ (#1380)" (#1452)
Browse files Browse the repository at this point in the history
This reverts commit 902de8d.
  • Loading branch information
schlosna authored Mar 17, 2023
1 parent 7f058b2 commit 10be2f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 5 additions & 0 deletions changelog/@unreleased/pr-1452.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: fix
fix:
description: This reverts commit 902de8d0c0d68098fc7fb5f5932c9cbc0a3a8e6a.
links:
- https://github.com/palantir/sls-packaging/pull/1452
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ public final class LaunchConfig {
ImmutableList.of("-XX:+ShowCodeDetailsInExceptionMessages");
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

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
private static final ImmutableList<String> jdk11DisableC2Compile =
Expand Down Expand Up @@ -179,10 +175,6 @@ static void action(Params params) {
javaVersion.compareTo(JavaVersion.toVersion("15")) == 0
? java15Options
: ImmutableList.of())
.addAllJvmOpts(
javaVersion.compareTo(JavaVersion.toVersion("17")) >= 0
? java17PlusOptions
: ImmutableList.of())
// Biased locking is disabled on java 15+ https://openjdk.java.net/jeps/374
// We disable biased locking on all releases in order to reduce safepoint time,
// revoking biased locks requires a safepoint, and can occur for non-obvious
Expand Down

0 comments on commit 10be2f1

Please sign in to comment.