Skip to content

Commit 741449a

Browse files
committed
More JDK version checks in CI job definitions
1 parent 4c4d01d commit 741449a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bench-common.libsonnet

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
min_jdk_version:: null,
2424
max_jdk_version:: null,
2525
is_jdk_supported(jdk_version)::
26-
if self.min_jdk_version != null && jdk_version < self.min_jdk_version then false
27-
else if self.max_jdk_version != null && jdk_version > self.max_jdk_version then false
26+
if jdk_version == null then error "jdk_version cannot be null!" else
27+
if std.objectHasAll(self, "min_jdk_version") && self.min_jdk_version != null && jdk_version < self.min_jdk_version then false
28+
else if std.objectHasAll(self, "max_jdk_version") && self.max_jdk_version != null && jdk_version > self.max_jdk_version then false
2829
else true
2930
},
3031

compiler/ci_common/compiler-common.libsonnet

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
benchmark_cmd:: bench_common.hwlocIfNuma(self.should_use_hwloc, self.plain_benchmark_cmd, node=self.default_numa_node),
3131
min_heap_size:: if std.objectHasAll(self.environment, 'XMS') then ["-Xms${XMS}"] else [],
3232
max_heap_size:: if std.objectHasAll(self.environment, 'XMX') then ["-Xmx${XMX}"] else [],
33-
extra_vm_args:: ["--profiler=${MX_PROFILER}", "--jvm=${JVM}", "--jvm-config=${JVM_CONFIG}", "-XX:+PrintConcurrentLocks", "-Dgraal.CompilationFailureAction=Diagnose", "-Dgraal.WarnMissingIntrinsic=true"] + self.min_heap_size + self.max_heap_size,
33+
_WarnMissingIntrinsic:: true, # won't be needed after GR-34642
34+
extra_vm_args:: ["--profiler=${MX_PROFILER}", "--jvm=${JVM}", "--jvm-config=${JVM_CONFIG}", "-XX:+PrintConcurrentLocks", "-Dgraal.CompilationFailureAction=Diagnose"] + (if self._WarnMissingIntrinsic then ["-Dgraal.WarnMissingIntrinsic=true"] else []) + self.min_heap_size + self.max_heap_size,
3435
should_mx_build:: true,
3536
setup+: [
3637
["cd", "./" + config.compiler.compiler_suite],

0 commit comments

Comments
 (0)