|
101 | 101 | test:: s.base(no_warning_as_error=true, extra_vm_args="-Djdk.graal.DetailedAsserts=true"),
|
102 | 102 | unittest_compiler:: s.base(tags="build,unittest-compiler", no_warning_as_error=true, extra_vm_args="-Djdk.graal.DetailedAsserts=true"),
|
103 | 103 | unittest_truffle:: s.base(tags="build,unittest-truffle", no_warning_as_error=true, extra_vm_args="-Djdk.graal.DetailedAsserts=true"),
|
| 104 | + |
104 | 105 | test_zgc:: s.base(no_warning_as_error=true, extra_vm_args="-XX:+UseZGC"),
|
105 | 106 | unittest_compiler_zgc:: s.base(tags="build,unittest-compiler", no_warning_as_error=true, extra_vm_args="-XX:+UseZGC"),
|
106 | 107 | unittest_truffle_zgc:: s.base(tags="build,unittest-truffle", no_warning_as_error=true, extra_vm_args="-XX:+UseZGC"),
|
| 108 | + |
| 109 | + test_shenandoah:: s.base(no_warning_as_error=true, extra_vm_args="-XX:+UseShenandoahGC"), |
| 110 | + unittest_compiler_shenandoah:: s.base(tags="build,unittest-compiler", no_warning_as_error=true, extra_vm_args="-XX:+UseShenandoahGC"), |
| 111 | + unittest_truffle_shenandoah:: s.base(tags="build,unittest-truffle", no_warning_as_error=true, extra_vm_args="-XX:+UseShenandoahGC"), |
| 112 | + |
107 | 113 | test_serialgc:: s.base(no_warning_as_error=true, extra_vm_args="-XX:+UseSerialGC"),
|
108 | 114 |
|
109 | 115 | jacoco_gate_args:: ["--jacoco-omit-excluded", "--jacoco-relativize-paths", "--jacoco-omit-src-gen", "--jacocout", "coverage", "--jacoco-format", "lcov"],
|
|
131 | 137 |
|
132 | 138 | # Runs truffle tests in a mode similar to HotSpot's -Xcomp option
|
133 | 139 | # (i.e. compile immediately without background compilation).
|
134 |
| - truffle_xcomp:: s.base("build,unittest", |
| 140 | + truffle_xcomp_base(extra_vm_args=""):: s.base("build,unittest", |
135 | 141 | extra_vm_args="-Dpolyglot.engine.AllowExperimentalOptions=true " +
|
136 | 142 | "-Dpolyglot.engine.CompileImmediately=true " +
|
137 | 143 | "-Dpolyglot.engine.BackgroundCompilation=false " +
|
138 |
| - "-Dtck.inlineVerifierInstrument=false", |
| 144 | + "-Dtck.inlineVerifierInstrument=false" + extra_vm_args, |
139 | 145 | extra_unittest_args="--verbose truffle") + {
|
140 | 146 | environment+: {"TRACE_COMPILATION": "true"},
|
141 | 147 | logs+: ["*/*_compilation.log"],
|
142 | 148 | components+: ["truffle"],
|
143 | 149 | },
|
144 | 150 |
|
145 |
| - truffle_xcomp_zgc:: s.base("build,unittest", |
146 |
| - extra_vm_args="-Dpolyglot.engine.AllowExperimentalOptions=true " + |
147 |
| - "-Dpolyglot.engine.CompileImmediately=true " + |
148 |
| - "-Dpolyglot.engine.BackgroundCompilation=false " + |
149 |
| - "-Dtck.inlineVerifierInstrument=false " + |
150 |
| - "-XX:+UseZGC", |
151 |
| - extra_unittest_args="--verbose truffle") + { |
152 |
| - environment+: {"TRACE_COMPILATION": "true"}, |
153 |
| - logs+: ["*/*_compilation.log"], |
154 |
| - components+: ["truffle"], |
155 |
| - }, |
156 |
| - |
157 |
| - truffle_xcomp_serialgc:: s.base("build,unittest", |
158 |
| - extra_vm_args="-Dpolyglot.engine.AllowExperimentalOptions=true " + |
159 |
| - "-Dpolyglot.engine.CompileImmediately=true " + |
160 |
| - "-Dpolyglot.engine.BackgroundCompilation=false " + |
161 |
| - "-Dtck.inlineVerifierInstrument=false " + |
162 |
| - "-XX:+UseSerialGC", |
163 |
| - extra_unittest_args="--verbose truffle") + { |
164 |
| - environment+: {"TRACE_COMPILATION": "true"}, |
165 |
| - logs+: ["*/*_compilation.log"], |
166 |
| - components+: ["truffle"], |
167 |
| - }, |
| 151 | + truffle_xcomp:: s.truffle_xcomp_base(), |
| 152 | + truffle_xcomp_zgc:: s.truffle_xcomp_base(" -XX:+UseZGC"), |
| 153 | + truffle_xcomp_shenandoah:: s.truffle_xcomp_base(" -XX:+UseShenandoahGC"), |
| 154 | + truffle_xcomp_serialgc:: s.truffle_xcomp_base(" -XX:+UseSerialGC"), |
168 | 155 |
|
169 | 156 | ctw:: s.base("build,ctw", no_warning_as_error=true),
|
170 | 157 | ctw_zgc:: s.base("build,ctw", no_warning_as_error=true, extra_vm_args="-XX:+UseZGC"),
|
| 158 | + ctw_shenandoah:: s.base("build,ctw", no_warning_as_error=true, extra_vm_args="-XX:+UseShenandoahGC"), |
171 | 159 |
|
172 | 160 | ctw_economy:: s.base("build,ctweconomy", extra_vm_args="-Djdk.graal.CompilerConfiguration=economy"),
|
173 | 161 | ctw_phaseplan_fuzzing:: s.base("build,ctwphaseplanfuzzing"),
|
174 | 162 |
|
175 | 163 | # Runs some benchmarks as tests
|
176 | 164 | benchmarktest:: s.base("build,benchmarktest") + jmh_benchmark_test,
|
177 | 165 | benchmarktest_zgc:: s.base("build,benchmarktest", extra_vm_args="-XX:+UseZGC") + jmh_benchmark_test,
|
| 166 | + benchmarktest_shenandoah:: s.base("build,benchmarktest", extra_vm_args="-XX:+UseShenandoahGC") + jmh_benchmark_test, |
178 | 167 |
|
179 | 168 | bootstrap:: s.base("build,bootstrap", no_warning_as_error=true),
|
180 | 169 | bootstrap_lite:: s.base("build,bootstraplite", no_warning_as_error=true),
|
181 | 170 | bootstrap_full:: s.base("build,bootstrapfullverify", no_warning_as_error=true),
|
182 | 171 | bootstrap_full_zgc:: s.base("build,bootstrapfullverify", no_warning_as_error=true, extra_vm_args="-XX:+UseZGC"),
|
| 172 | + bootstrap_full_shenandoah:: s.base("build,bootstrapfullverify", no_warning_as_error=true, extra_vm_args="-XX:+UseShenandoahGC"), |
183 | 173 | bootstrap_economy:: s.base("build,bootstrapeconomy", no_warning_as_error=true, extra_vm_args="-Djdk.graal.CompilerConfiguration=economy"),
|
184 | 174 |
|
185 | 175 | style:: c.deps.eclipse + c.deps.jdt + c.deps.spotbugs + s.base("style,fullbuild,javadoc") + galahad.exclude,
|
|
491 | 481 | self.make_build(self.jdk_latest, "linux-amd64", "coverage_avx3").build
|
492 | 482 | ],
|
493 | 483 |
|
494 |
| - # Test ZGC on supported platforms. Windows requires version 1083 or later which will |
495 |
| - # probably require adding some capabilities. |
496 |
| - local all_zgc_builds = [self.make_build(jdk, os_arch, task).build + galahad.exclude |
497 |
| - for jdk in [ |
498 |
| - self.jdk_latest |
499 |
| - ] |
500 |
| - for os_arch in [ |
501 |
| - "linux-amd64", |
502 |
| - "linux-aarch64", |
503 |
| - "darwin-amd64", |
504 |
| - "darwin-aarch64" |
505 |
| - ] |
506 |
| - for task in [ |
507 |
| - "test_zgc", |
508 |
| - "unittest_compiler_zgc", |
509 |
| - "unittest_truffle_zgc", |
510 |
| - "truffle_xcomp_zgc", |
511 |
| - "ctw_zgc", |
512 |
| - "benchmarktest_zgc", |
513 |
| - "bootstrap_full_zgc", |
514 |
| - ] |
515 |
| - ], |
| 484 | + # Test ZGC on supported platforms. Windows requires version 1083 or later which will |
| 485 | + # probably require adding some capabilities. |
| 486 | + local all_zgc_builds = [self.make_build(jdk, os_arch, task).build + galahad.exclude |
| 487 | + for jdk in [ |
| 488 | + self.jdk_latest |
| 489 | + ] |
| 490 | + for os_arch in [ |
| 491 | + "linux-amd64", |
| 492 | + "linux-aarch64", |
| 493 | + "darwin-amd64", |
| 494 | + "darwin-aarch64" |
| 495 | + ] |
| 496 | + for task in [ |
| 497 | + "test_zgc", |
| 498 | + "unittest_compiler_zgc", |
| 499 | + "unittest_truffle_zgc", |
| 500 | + "truffle_xcomp_zgc", |
| 501 | + "ctw_zgc", |
| 502 | + "benchmarktest_zgc", |
| 503 | + "bootstrap_full_zgc", |
| 504 | + ] |
| 505 | + ], |
| 506 | + |
| 507 | + # Test Shenandoah on supported platforms. |
| 508 | + local all_shenandoah_builds = [self.make_build(jdk, os_arch, task).build + galahad.exclude |
| 509 | + for jdk in [ |
| 510 | + self.jdk_latest |
| 511 | + ] |
| 512 | + for os_arch in all_os_arches |
| 513 | + for task in [ |
| 514 | + "test_shenandoah", |
| 515 | + "unittest_compiler_shenandoah", |
| 516 | + "unittest_truffle_shenandoah", |
| 517 | + "truffle_xcomp_shenandoah", |
| 518 | + "ctw_shenandoah", |
| 519 | + "benchmarktest_shenandoah", |
| 520 | + "bootstrap_full_shenandoah", |
| 521 | + ] |
| 522 | + ], |
516 | 523 |
|
517 | 524 | # Run unittests with SerialGC.
|
518 | 525 | local all_serialgc_builds = [self.make_build(self.jdk_latest, os_arch, task).build + galahad.exclude
|
|
563 | 570 | all_platforms_builds +
|
564 | 571 | all_coverage_builds +
|
565 | 572 | all_zgc_builds +
|
| 573 | + all_shenandoah_builds + |
566 | 574 | all_serialgc_builds +
|
567 | 575 | style_builds +
|
568 | 576 | linux_amd64_jdk_latest_builds +
|
|
0 commit comments