|
5 | 5 | local s = self, |
6 | 6 | local t(limit) = {timelimit: limit}, |
7 | 7 |
|
| 8 | + local jmh_benchmark_test = { |
| 9 | + run+: [ |
| 10 | + # blackbox jmh test |
| 11 | + ["mx", "benchmark", "jmh-dist:GRAAL_COMPILER_MICRO_BENCHMARKS", |
| 12 | + "--fail-fast", |
| 13 | + "--", |
| 14 | + "-Djmh.ignoreLock=true", |
| 15 | + "--jvm-config=" + jvm_config, |
| 16 | + "--jvm=server", |
| 17 | + "--", |
| 18 | + ".*TestJMH.*" ], |
| 19 | + # whitebox jmh test |
| 20 | + ["mx", "benchmark", "jmh-whitebox:*", |
| 21 | + "--fail-fast", |
| 22 | + "--", |
| 23 | + "-Djmh.ignoreLock=true", |
| 24 | + "--jvm-config=" + jvm_config, |
| 25 | + "--jvm=server", |
| 26 | + "--", |
| 27 | + ".*TestJMH.*" ] |
| 28 | + ] |
| 29 | + }, |
| 30 | + |
8 | 31 | setup:: { |
9 | 32 | setup+: [ |
10 | 33 | ["cd", "./" + config.compiler.compiler_suite], |
|
56 | 79 | }, |
57 | 80 |
|
58 | 81 | test:: s.base(no_warning_as_error=true), |
| 82 | + test_zgc:: s.base(no_warning_as_error=true, extra_vm_args="-XX:+UseZGC"), |
| 83 | + |
59 | 84 |
|
60 | 85 | jacoco_gate_args:: ["--jacoco-omit-excluded", "--jacoco-relativize-paths", "--jacoco-omit-src-gen", "--jacocout", "coverage", "--jacoco-format", "lcov"], |
61 | 86 | upload_coverage:: ["mx", "sversions", "--print-repositories", "--json", "|", "coverage-uploader.py", "--associated-repos", "-"], |
|
91 | 116 | logs+: ["*/*_compilation.log"] |
92 | 117 | }, |
93 | 118 |
|
| 119 | + truffle_xcomp_zgc:: s.base("build,unittest", |
| 120 | + extra_vm_args="-Dpolyglot.engine.AllowExperimentalOptions=true " + |
| 121 | + "-Dpolyglot.engine.CompileImmediately=true " + |
| 122 | + "-Dpolyglot.engine.BackgroundCompilation=false " + |
| 123 | + "-Dtck.inlineVerifierInstrument=false " + |
| 124 | + "-XX:+UseZGC", |
| 125 | + extra_unittest_args="--very-verbose truffle") + { |
| 126 | + environment+: {"TRACE_COMPILATION": "true"}, |
| 127 | + logs+: ["*/*_compilation.log"] |
| 128 | + }, |
| 129 | + |
94 | 130 | ctw:: s.base("build,ctw", no_warning_as_error=true), |
| 131 | + ctw_zgc:: s.base("build,ctw", no_warning_as_error=true, extra_vm_args="-XX:+UseZGC"), |
95 | 132 |
|
96 | 133 | ctw_economy:: s.base("build,ctweconomy", extra_vm_args="-Dgraal.CompilerConfiguration=economy"), |
97 | 134 | ctw_phaseplan_fuzzing:: s.base("build,ctwphaseplanfuzzing"), |
98 | 135 |
|
99 | 136 | # Runs some benchmarks as tests |
100 | | - benchmarktest:: s.base("build,benchmarktest") + { |
101 | | - run+: [ |
102 | | - # blackbox jmh test |
103 | | - ["mx", "benchmark", "jmh-dist:GRAAL_COMPILER_MICRO_BENCHMARKS", |
104 | | - "--fail-fast", |
105 | | - "--", |
106 | | - "-Djmh.ignoreLock=true", |
107 | | - "--jvm-config=" + jvm_config, |
108 | | - "--jvm=server", |
109 | | - "--", |
110 | | - ".*TestJMH.*" ], |
111 | | - # whitebox jmh test |
112 | | - ["mx", "benchmark", "jmh-whitebox:*", |
113 | | - "--fail-fast", |
114 | | - "--", |
115 | | - "-Djmh.ignoreLock=true", |
116 | | - "--jvm-config=" + jvm_config, |
117 | | - "--jvm=server", |
118 | | - "--", |
119 | | - ".*TestJMH.*" ] |
120 | | - ] |
121 | | - }, |
| 137 | + benchmarktest:: s.base("build,benchmarktest") + jmh_benchmark_test, |
| 138 | + benchmarktest_zgc:: s.base("build,benchmarktest", extra_vm_args="-XX:+UseZGC") + jmh_benchmark_test, |
122 | 139 |
|
123 | 140 | bootstrap:: s.base("build,bootstrap", no_warning_as_error=true), |
124 | 141 | bootstrap_lite:: s.base("build,bootstraplite", no_warning_as_error=true), |
125 | 142 | bootstrap_full:: s.base("build,bootstrapfullverify", no_warning_as_error=true), |
| 143 | + bootstrap_full_zgc:: s.base("build,bootstrapfullverify", no_warning_as_error=true, extra_vm_args="-XX:+UseZGC"), |
126 | 144 | bootstrap_economy:: s.base("build,bootstrapeconomy", no_warning_as_error=true, extra_vm_args="-Dgraal.CompilerConfiguration=economy"), |
127 | 145 |
|
128 | 146 | style:: c.deps.eclipse + c.deps.jdt + s.base("style,fullbuild,javadoc"), |
|
163 | 181 | # fields of the denoted build. |
164 | 182 | local gates = { |
165 | 183 | "gate-compiler-test-labsjdk-20-linux-amd64": t("1:00:00") + c.mach5_target, |
| 184 | + "gate-compiler-test-labsjdk-17-linux-amd64": t("1:00:00"), |
166 | 185 | "gate-compiler-test-labsjdk-20-linux-aarch64": t("1:50:00"), |
167 | 186 | "gate-compiler-test-labsjdk-20-darwin-amd64": t("1:00:00") + c.mach5_target, |
168 | 187 | "gate-compiler-test-labsjdk-20-darwin-aarch64": t("1:00:00"), |
169 | | - "gate-compiler-test-labsjdk-20-windows-amd64": t("55:00") + c.mach5_target, |
| 188 | + "gate-compiler-test_zgc-labsjdk-20-linux-amd64": t("1:00:00") + c.mach5_target, |
| 189 | + "gate-compiler-test_zgc-labsjdk-20-linux-aarch64": t("1:50:00"), |
| 190 | + "gate-compiler-test_zgc-labsjdk-20-darwin-amd64": t("1:00:00") + c.mach5_target, |
| 191 | + "gate-compiler-test_zgc-labsjdk-20-darwin-aarch64": t("1:00:00"), |
170 | 192 |
|
171 | 193 | "gate-compiler-style-labsjdk-20-linux-amd64": t("45:00"), |
172 | 194 |
|
173 | 195 | "gate-compiler-ctw-labsjdk-20-linux-amd64": c.mach5_target, |
174 | 196 | "gate-compiler-ctw-labsjdk-20-windows-amd64": t("1:50:00"), |
| 197 | + "gate-compiler-ctw_zgc-labsjdk-20-linux-amd64": c.mach5_target, |
175 | 198 |
|
176 | 199 | "gate-compiler-ctw_economy-labsjdk-20-linux-amd64": {}, |
177 | 200 | "gate-compiler-ctw_economy-labsjdk-20-windows-amd64": t("1:50:00"), |
178 | 201 |
|
179 | 202 | "gate-compiler-benchmarktest-labsjdk-20-linux-amd64": {}, |
| 203 | + "gate-compiler-benchmarktest_zgc-labsjdk-20-linux-amd64": {}, |
180 | 204 |
|
181 | 205 | "gate-compiler-truffle_xcomp-labsjdk-20-linux-amd64": t("1:30:00"), |
| 206 | + "gate-compiler-truffle_xcomp_zgc-labsjdk-20-linux-amd64": t("1:30:00"), |
182 | 207 |
|
183 | 208 | "gate-compiler-bootstrap_lite-labsjdk-20-darwin-amd64": t("1:00:00") + c.mach5_target, |
184 | 209 |
|
185 | | - "gate-compiler-bootstrap_full-labsjdk-20-linux-amd64": s.many_cores + c.mach5_target |
| 210 | + "gate-compiler-bootstrap_full-labsjdk-20-linux-amd64": s.many_cores + c.mach5_target, |
| 211 | + "gate-compiler-bootstrap_full_zgc-labsjdk-20-linux-amd64": s.many_cores + c.mach5_target |
186 | 212 | }, |
187 | 213 |
|
188 | 214 | # This map defines the builders that run daily. Each key in this map |
|
211 | 237 | notify_emails: [ "[email protected]"], |
212 | 238 | }, |
213 | 239 |
|
214 | | - "weekly-compiler-test-labsjdk-17-linux-amd64": {}, |
215 | 240 | "weekly-compiler-test-labsjdk-17-linux-aarch64": {}, |
216 | 241 | "weekly-compiler-test-labsjdk-17-windows-amd64": {}, |
217 | 242 | "weekly-compiler-test-labsjdk-17-darwin-amd64": {}, |
|
220 | 245 | "weekly-compiler-test_vec16-labsjdk-20-linux-amd64": {}, |
221 | 246 | "weekly-compiler-test_avx0-labsjdk-20-linux-amd64": {}, |
222 | 247 | "weekly-compiler-test_avx1-labsjdk-20-linux-amd64": {}, |
| 248 | + |
223 | 249 | "weekly-compiler-test_jtt_phaseplan_fuzzing-labsjdk-20-linux-amd64": { |
224 | 250 | notify_groups: [], |
225 | 251 | notify_emails: [ "[email protected]"], |
|
345 | 371 | ] |
346 | 372 | ], |
347 | 373 |
|
| 374 | + # Test ZGC on support platforms. Windows requires version 1083 or later which will |
| 375 | + # probably require adding some capabilities. |
| 376 | + local all_zgc_builds = [self.make_build(jdk, os_arch, task).build |
| 377 | + for jdk in [ |
| 378 | + "17", |
| 379 | + "20" |
| 380 | + ] |
| 381 | + for os_arch in [ |
| 382 | + "linux-amd64", |
| 383 | + "linux-aarch64", |
| 384 | + "darwin-amd64", |
| 385 | + "darwin-aarch64" |
| 386 | + ] |
| 387 | + for task in [ |
| 388 | + "test_zgc", |
| 389 | + "truffle_xcomp_zgc", |
| 390 | + "ctw_zgc", |
| 391 | + "benchmarktest_zgc", |
| 392 | + "bootstrap_full_zgc" |
| 393 | + ] |
| 394 | + ], |
| 395 | + |
348 | 396 | # Builds run on only on linux-amd64-jdk20 |
349 | 397 | local linux_amd64_jdk20_builds = [self.make_build("20", "linux-amd64", task).build |
350 | 398 | for task in [ |
|
370 | 418 | # Complete set of builds defined in this file |
371 | 419 | local all_builds = |
372 | 420 | all_platforms_builds + |
| 421 | + all_zgc_builds + |
373 | 422 | linux_amd64_jdk20_builds + |
374 | 423 | linux_amd64_jdk20Debug_builds, |
375 | 424 |
|
|
0 commit comments