Skip to content

Commit

Permalink
Cleanup jvm.config selection for compatibility tests
Browse files Browse the repository at this point in the history
  • Loading branch information
losipiuk committed Oct 4, 2024
1 parent 25b3c46 commit 3c70981
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public void extendEnvironment(Environment.Builder builder, Map<String, String> e

private void configureCompatibilityTestContainer(Environment.Builder builder, Config config)
{
boolean java22 = config.getCompatibilityTestVersion() >= 447;
String jvmConfig = "conf/trino/etc/" + (java22 ? "jvm.config" : "jvm-pre-jdk22.config");
boolean initialJdk22 = config.getCompatibilityTestVersion() >= 447 && config.getCompatibilityTestVersion() <= 452;
String jvmConfig = initialJdk22 ? "conf/trino/etc/jvm.config-initial-jdk-22" : "conf/trino/etc/jvm.config";
String dockerImage = config.getCompatibilityTestDockerImage();
String containerConfigDir = getConfigurationDirectory(dockerImage);
DockerContainer container = new DockerContainer(dockerImage, COMPATIBILTY_TEST_CONTAINER_NAME)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,3 @@
# Allow loading dynamic agent used by JOL
-XX:+EnableDynamicAgentLoading
-XX:+UnlockDiagnosticVMOptions
# https://bugs.openjdk.org/browse/JDK-8329528
-XX:G1NumCollectionsKeepPinned=10000000
# https://bugs.openjdk.org/browse/JDK-8327134
-Djava.security.manager=allow
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
# Allow loading dynamic agent used by JOL
-XX:+EnableDynamicAgentLoading
-XX:+UnlockDiagnosticVMOptions
# https://bugs.openjdk.org/browse/JDK-8329528
-XX:G1NumCollectionsKeepPinned=10000000
# https://bugs.openjdk.org/browse/JDK-8327134
-Djava.security.manager=allow

0 comments on commit 3c70981

Please sign in to comment.