Skip to content

Commit b448875

Browse files
Merge with master.
2 parents 1659760 + 8ba0b5f commit b448875

File tree

383 files changed

+6715
-2200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

383 files changed

+6715
-2200
lines changed

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ local libgraal(builds, include=true) = [b for b in builds if (std.findSubstr("li
4848
ci_resources:: (import 'ci/ci_common/ci-resources.libsonnet'),
4949
overlay: graal_common.ci.overlay,
5050
specVersion: "4",
51-
builds: [common.add_excludes_guard(b) for b in (
51+
builds: [common.add_excludes_guard(common.with_style_component(b)) for b in (
5252
common.with_components(compiler.builds + libgraal(vm.builds), ["compiler"]) +
5353
common.with_components(wasm.builds, ["wasm"]) +
5454
common.with_components(espresso.builds, ["espresso"]) +

ci/ci_common/common.jsonnet

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# This file is only shared between the graal and graal-enterprise repositories.
22

33
local common = import "../common.jsonnet";
4+
local utils = import "common-utils.libsonnet";
45
local repo_config = import '../repo-configuration.libsonnet';
56

67
common + common.frequencies + {
@@ -55,6 +56,13 @@ common + common.frequencies + {
5556
build + { "components" : components }
5657
for build in builds
5758
],
59+
# Add the specified components to the field `components`.
60+
with_style_component(build)::
61+
if std.objectHas(build, "name") && utils.contains(build.name, "-style-") then
62+
$.with_components([build], ["style"])[0]
63+
else
64+
build
65+
,
5866

5967
// Heap settings
6068
// *************

common.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@
4545
"labsjdk-ee-21-llvm": {"name": "labsjdk", "version": "ee-21.0.2+13-jvmci-23.1-b33-sulong", "platformspecific": true },
4646
"graalvm-ee-21": {"name": "graalvm-java21", "version": "23.1.3", "platformspecific": true },
4747

48-
"oraclejdk-latest": {"name": "jpg-jdk", "version": "24", "build_id": "jdk-24+10", "platformspecific": true, "extrabundles": ["static-libs"]},
49-
"labsjdk-ce-latest": {"name": "labsjdk", "version": "ce-24+10-jvmci-b01", "platformspecific": true },
50-
"labsjdk-ce-latestDebug": {"name": "labsjdk", "version": "ce-24+10-jvmci-b01-debug", "platformspecific": true },
51-
"labsjdk-ce-latest-llvm": {"name": "labsjdk", "version": "ce-24+10-jvmci-b01-sulong", "platformspecific": true },
52-
"labsjdk-ee-latest": {"name": "labsjdk", "version": "ee-24+10-jvmci-b01", "platformspecific": true },
53-
"labsjdk-ee-latestDebug": {"name": "labsjdk", "version": "ee-24+10-jvmci-b01-debug", "platformspecific": true },
54-
"labsjdk-ee-latest-llvm": {"name": "labsjdk", "version": "ee-24+10-jvmci-b01-sulong", "platformspecific": true }
48+
"oraclejdk-latest": {"name": "jpg-jdk", "version": "24", "build_id": "jdk-24+11", "platformspecific": true, "extrabundles": ["static-libs"]},
49+
"labsjdk-ce-latest": {"name": "labsjdk", "version": "ce-24+11-jvmci-b01", "platformspecific": true },
50+
"labsjdk-ce-latestDebug": {"name": "labsjdk", "version": "ce-24+11-jvmci-b01-debug", "platformspecific": true },
51+
"labsjdk-ce-latest-llvm": {"name": "labsjdk", "version": "ce-24+11-jvmci-b01-sulong", "platformspecific": true },
52+
"labsjdk-ee-latest": {"name": "labsjdk", "version": "ee-24+11-jvmci-b01", "platformspecific": true },
53+
"labsjdk-ee-latestDebug": {"name": "labsjdk", "version": "ee-24+11-jvmci-b01-debug", "platformspecific": true },
54+
"labsjdk-ee-latest-llvm": {"name": "labsjdk", "version": "ee-24+11-jvmci-b01-sulong", "platformspecific": true }
5555
},
5656

5757
"eclipse": {

compiler/ci/ci_common/benchmark-suites.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
run+: [
124124
self.benchmark_cmd + ["specjbb2015", "--"] + self.extra_vm_args
125125
],
126-
timelimit: "3:00:00",
126+
timelimit: "5:00:00",
127127
forks_batches:: null,
128128
forks_timelimit:: null,
129129
min_jdk_version:: 8,

compiler/ci/ci_common/compiler-common.libsonnet

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,6 @@
178178
}
179179
},
180180

181-
gen_zgc_mode:: {
182-
platform+:: "-gen-zgc",
183-
environment+: {
184-
"JVM_CONFIG"+: "-gen-zgc",
185-
}
186-
},
187-
188181
serialgc_mode:: {
189182
platform+:: "-serialgc",
190183
environment+: {

compiler/ci/ci_common/gate.jsonnet

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@
8484
},
8585

8686
test:: s.base(no_warning_as_error=true),
87-
test_zgc:: s.base(no_warning_as_error=true, extra_vm_args="-XX:+UseZGC -XX:-ZGenerational"),
87+
test_zgc:: s.base(no_warning_as_error=true, extra_vm_args="-XX:+UseZGC"),
88+
test_singlegen_zgc:: s.base(no_warning_as_error=true, extra_vm_args="-XX:+UseZGC -XX:-ZGenerational"),
8889
test_serialgc:: s.base(no_warning_as_error=true, extra_vm_args="-XX:+UseSerialGC"),
8990

9091

@@ -124,6 +125,18 @@
124125
},
125126

126127
truffle_xcomp_zgc:: s.base("build,unittest",
128+
extra_vm_args="-Dpolyglot.engine.AllowExperimentalOptions=true " +
129+
"-Dpolyglot.engine.CompileImmediately=true " +
130+
"-Dpolyglot.engine.BackgroundCompilation=false " +
131+
"-Dtck.inlineVerifierInstrument=false " +
132+
"-XX:+UseZGC",
133+
extra_unittest_args="--verbose truffle") + {
134+
environment+: {"TRACE_COMPILATION": "true"},
135+
logs+: ["*/*_compilation.log"],
136+
components+: ["truffle"],
137+
},
138+
139+
truffle_xcomp_singlegen_zgc:: s.base("build,unittest",
127140
extra_vm_args="-Dpolyglot.engine.AllowExperimentalOptions=true " +
128141
"-Dpolyglot.engine.CompileImmediately=true " +
129142
"-Dpolyglot.engine.BackgroundCompilation=false " +
@@ -148,19 +161,22 @@
148161
},
149162

150163
ctw:: s.base("build,ctw", no_warning_as_error=true),
151-
ctw_zgc:: s.base("build,ctw", no_warning_as_error=true, extra_vm_args="-XX:+UseZGC -XX:-ZGenerational"),
164+
ctw_zgc:: s.base("build,ctw", no_warning_as_error=true, extra_vm_args="-XX:+UseZGC"),
165+
ctw_singlegen_zgc:: s.base("build,ctw", no_warning_as_error=true, extra_vm_args="-XX:+UseZGC -XX:-ZGenerational"),
152166

153167
ctw_economy:: s.base("build,ctweconomy", extra_vm_args="-Djdk.graal.CompilerConfiguration=economy"),
154168
ctw_phaseplan_fuzzing:: s.base("build,ctwphaseplanfuzzing"),
155169

156170
# Runs some benchmarks as tests
157171
benchmarktest:: s.base("build,benchmarktest") + jmh_benchmark_test,
158-
benchmarktest_zgc:: s.base("build,benchmarktest", extra_vm_args="-XX:+UseZGC -XX:-ZGenerational") + jmh_benchmark_test,
172+
benchmarktest_zgc:: s.base("build,benchmarktest", extra_vm_args="-XX:+UseZGC") + jmh_benchmark_test,
173+
benchmarktest_singlegen_zgc:: s.base("build,benchmarktest", extra_vm_args="-XX:+UseZGC -XX:-ZGenerational") + jmh_benchmark_test,
159174

160175
bootstrap:: s.base("build,bootstrap", no_warning_as_error=true),
161176
bootstrap_lite:: s.base("build,bootstraplite", no_warning_as_error=true),
162177
bootstrap_full:: s.base("build,bootstrapfullverify", no_warning_as_error=true),
163-
bootstrap_full_zgc:: s.base("build,bootstrapfullverify", no_warning_as_error=true, extra_vm_args="-XX:+UseZGC -XX:-ZGenerational"),
178+
bootstrap_full_zgc:: s.base("build,bootstrapfullverify", no_warning_as_error=true, extra_vm_args="-XX:+UseZGC"),
179+
bootstrap_full_singlegen_zgc:: s.base("build,bootstrapfullverify", no_warning_as_error=true, extra_vm_args="-XX:+UseZGC -XX:-ZGenerational"),
164180
bootstrap_economy:: s.base("build,bootstrapeconomy", no_warning_as_error=true, extra_vm_args="-Djdk.graal.CompilerConfiguration=economy"),
165181

166182
style:: c.deps.eclipse + c.deps.jdt + s.base("style,fullbuild,javadoc") + galahad.exclude,
@@ -437,7 +453,7 @@
437453
self.make_build("21", "linux-amd64", "coverage_avx3").build
438454
],
439455

440-
# Test ZGC on support platforms. Windows requires version 1083 or later which will
456+
# Test ZGC on supported platforms. Windows requires version 1083 or later which will
441457
# probably require adding some capabilities.
442458
local all_zgc_builds = [self.make_build(jdk, os_arch, task).build + galahad.exclude
443459
for jdk in [
@@ -454,7 +470,12 @@
454470
"truffle_xcomp_zgc",
455471
"ctw_zgc",
456472
"benchmarktest_zgc",
457-
"bootstrap_full_zgc"
473+
"bootstrap_full_zgc",
474+
"test_singlegen_zgc",
475+
"truffle_xcomp_singlegen_zgc",
476+
"ctw_singlegen_zgc",
477+
"benchmarktest_singlegen_zgc",
478+
"bootstrap_full_singlegen_zgc",
458479
]
459480
],
460481

compiler/ci/ci_includes/baseline-benchmarks.jsonnet

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
c.monthly + hw.e3 + jdk + cc.c2 + cc.serialgc_mode + bench.microservice_benchmarks,
7171
c.monthly + hw.e3 + jdk + cc.c2 + cc.pargc_mode + bench.microservice_benchmarks,
7272
c.monthly + hw.e3 + jdk + cc.c2 + cc.zgc_mode + bench.microservice_benchmarks,
73-
c.monthly + hw.e3 + jdk + cc.c2 + cc.gen_zgc_mode + bench.microservice_benchmarks,
7473
]
7574
for jdk in cc.product_jdks
7675
]),

compiler/mx.compiler/mx_compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ def compiler_gate_benchmark_runner(tasks, extraVMarguments=None, prefix='', task
605605
# ensure we can run with --enable-preview
606606
with Task(prefix + 'DaCapo_enable-preview:fop', tasks, tags=GraalTags.test, report=task_report_component) as t:
607607
if t:
608-
_gate_dacapo('fop', 8, ['--enable-preview', '-Djdk.graal.CompilationFailureAction=ExitVM'])
608+
_gate_dacapo('fop', 8, benchVmArgs + ['--enable-preview', '-Djdk.graal.CompilationFailureAction=ExitVM'])
609609

610610
# run Scala DaCapo benchmarks #
611611
###############################

compiler/mx.compiler/mx_graal_benchmark.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@
4545
('serialgc', ['-XX:+UseSerialGC'], 12),
4646
('pargc', ['-XX:+UseParallelGC'], 12),
4747
('g1gc', ['-XX:+UseG1GC'], 12),
48-
('zgc', ['-XX:+UseZGC', '-XX:-ZGenerational'], 12),
49-
# ('gen-zgc', ['-XX:+UseZGC', '-XX:+ZGenerational'], 12), # GR-45919 not yet supported
50-
('zgc-avx2', ['-XX:+UseZGC', '-XX:-ZGenerational', '-XX:UseAVX=2'], 12),
51-
('zgc-avx3', ['-XX:+UseZGC', '-XX:-ZGenerational', '-XX:UseAVX=3'], 12),
48+
('zgc', ['-XX:+UseZGC'], 12),
49+
('zgc-avx2', ['-XX:+UseZGC', '-XX:UseAVX=2'], 12),
50+
('zgc-avx3', ['-XX:+UseZGC', '-XX:UseAVX=3'], 12),
5251
('no-comp-oops', ['-XX:-UseCompressedOops'], 0),
5352
('no-profile-info', ['-Djvmci.UseProfilingInformation=false'], 0),
5453
('no-splitting', ['-Dpolyglot.engine.Splitting=false'], 0),
@@ -72,8 +71,7 @@
7271
mx_benchmark.add_java_vm(JvmciJdkVm('server', 'default', ['-server', '-XX:-EnableJVMCI']), _suite, 2)
7372
mx_benchmark.add_java_vm(JvmciJdkVm('server', 'default-serialgc', ['-server', '-XX:-EnableJVMCI', '-XX:+UseSerialGC']), _suite, 2)
7473
mx_benchmark.add_java_vm(JvmciJdkVm('server', 'default-pargc', ['-server', '-XX:-EnableJVMCI', '-XX:+UseParallelGC']), _suite, 2)
75-
mx_benchmark.add_java_vm(JvmciJdkVm('server', 'default-zgc', ['-server', '-XX:-EnableJVMCI', '-XX:+UseZGC', '-XX:-ZGenerational']), _suite, 2)
76-
mx_benchmark.add_java_vm(JvmciJdkVm('server', 'default-gen-zgc', ['-server', '-XX:-EnableJVMCI', '-XX:+UseZGC', '-XX:+ZGenerational']), _suite, 2)
74+
mx_benchmark.add_java_vm(JvmciJdkVm('server', 'default-zgc', ['-server', '-XX:-EnableJVMCI', '-XX:+UseZGC']), _suite, 2)
7775
mx_benchmark.add_java_vm(JvmciJdkVm('server', 'default-no-tiered-comp', ['-server', '-XX:-EnableJVMCI', '-XX:-TieredCompilation']), _suite, 2)
7876
mx_benchmark.add_java_vm(JvmciJdkVm('server', 'hosted', ['-server', '-XX:+EnableJVMCI']), _suite, 3)
7977

compiler/mx.compiler/suite.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,14 @@
190190
],
191191
},
192192
"uses" : [
193+
"jdk.graal.compiler.hotspot.meta.DefaultHotSpotLoweringProvider.Extensions",
193194
"jdk.graal.compiler.hotspot.meta.HotSpotInvocationPluginProvider",
194195
"jdk.graal.compiler.lir.LIRInstructionVerifier",
195196
"jdk.graal.compiler.core.common.CompilerProfiler",
196197
"jdk.graal.compiler.truffle.substitutions.GraphBuilderInvocationPluginProvider",
197198
"jdk.graal.compiler.truffle.phases.inlining.InliningPolicyProvider",
199+
"jdk.graal.compiler.truffle.host.TruffleHostEnvironment.Lookup",
200+
"jdk.graal.compiler.truffle.substitutions.GraphDecoderInvocationPluginProvider"
198201
],
199202
"annotationProcessors" : [
200203
"GRAAL_PROCESSOR"
@@ -557,7 +560,6 @@
557560
"jdk.graal.compiler.debug.DebugHandlersFactory",
558561
"jdk.graal.compiler.debug.TTYStreamProvider",
559562
"jdk.graal.compiler.debug.PathUtilitiesProvider",
560-
"jdk.graal.compiler.hotspot.HotSpotCodeCacheListener",
561563
"jdk.graal.compiler.hotspot.HotSpotBackendFactory",
562564
"jdk.graal.compiler.hotspot.meta.HotSpotInvocationPluginProvider",
563565
"jdk.graal.compiler.nodes.graphbuilderconf.GeneratedPluginFactory",

0 commit comments

Comments
 (0)