Skip to content

Commit d1f5ef2

Browse files
committed
Merge with master
2 parents 546f9d4 + 84c96ca commit d1f5ef2

File tree

436 files changed

+38911
-31889
lines changed

Some content is hidden

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

436 files changed

+38911
-31889
lines changed

common.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@
5555
"graalvm-ee-25-ea": {"name": "graalvm-jdk", "version": "25.0.0", "ea": "36", "platformspecific": true },
5656

5757
"oraclejdk-latest": {"name": "jpg-jdk", "version": "25", "build_id": "jdk-25+37", "platformspecific": true, "extrabundles": ["static-libs"]},
58-
"labsjdk-ce-latest": {"name": "labsjdk", "version": "ce-25+37-jvmci-b04", "platformspecific": true },
59-
"labsjdk-ce-latestDebug": {"name": "labsjdk", "version": "ce-25+37-jvmci-b04-debug", "platformspecific": true },
60-
"labsjdk-ce-latest-llvm": {"name": "labsjdk", "version": "ce-25+37-jvmci-b04-sulong", "platformspecific": true },
61-
"labsjdk-ee-latest": {"name": "labsjdk", "version": "ee-25+37-jvmci-b04", "platformspecific": true },
62-
"labsjdk-ee-latestDebug": {"name": "labsjdk", "version": "ee-25+37-jvmci-b04-debug", "platformspecific": true },
63-
"labsjdk-ee-latest-llvm": {"name": "labsjdk", "version": "ee-25+37-jvmci-b04-sulong", "platformspecific": true }
58+
"labsjdk-ce-latest": {"name": "labsjdk", "version": "ce-25+37-jvmci-b06", "platformspecific": true },
59+
"labsjdk-ce-latestDebug": {"name": "labsjdk", "version": "ce-25+37-jvmci-b06-debug", "platformspecific": true },
60+
"labsjdk-ce-latest-llvm": {"name": "labsjdk", "version": "ce-25+37-jvmci-b06-sulong", "platformspecific": true },
61+
"labsjdk-ee-latest": {"name": "labsjdk", "version": "ee-25+37-jvmci-b06", "platformspecific": true },
62+
"labsjdk-ee-latestDebug": {"name": "labsjdk", "version": "ee-25+37-jvmci-b06-debug", "platformspecific": true },
63+
"labsjdk-ee-latest-llvm": {"name": "labsjdk", "version": "ee-25+37-jvmci-b06-sulong", "platformspecific": true }
6464
},
6565

6666
"eclipse": {

compiler/OWNERS.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ any = [
77
"gergo.barany@oracle.com",
88
"yudi.zheng@oracle.com",
99
"raphael.m.mosaner@oracle.com",
10-
"quan.anh.mai@oracle.com",
1110
]

compiler/mx.compiler/mx_compiler.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,11 +821,21 @@ class GraalUnittestConfig(mx_unittest.MxUnittestConfig):
821821
def __init__(self):
822822
super(GraalUnittestConfig, self).__init__('graal')
823823

824+
def _replace_graal_test_deps(self, cp):
825+
"""
826+
Updates the classpath `cp` to replace the path for GRAAL_TEST_COMPILETIME's jar
827+
with the path for GRAAL_TEST_RUNTIME's jar. This is used by tests (such as
828+
TestAnnotationsOnTypes) in jdk.graal.compiler.annotation.test to ensure annotation
829+
parsing handles an annotation use where the annotation type has evolved since the
830+
source code of the use was compiled.
831+
"""
832+
return cp.replace(mx.distribution("GRAAL_TEST_COMPILETIME").path, mx.distribution("GRAAL_TEST_RUNTIME").path)
833+
824834
def apply(self, config):
825835
vmArgs, mainClass, mainClassArgs = config
826836
cpIndex, cp = mx.find_classpath_arg(vmArgs)
827837
if cp:
828-
cp = _remove_redundant_entries(cp)
838+
cp = self._replace_graal_test_deps(_remove_redundant_entries(cp))
829839

830840
vmArgs[cpIndex] = cp
831841
# JVMCI is dynamically exported to Graal when JVMCI is initialized. This is too late

compiler/mx.compiler/suite.py

Lines changed: 59 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,12 @@
139139
],
140140
"requiresConcealed" : {
141141
"java.base" : [
142-
"jdk.internal.misc"
142+
"jdk.internal.misc",
143+
"sun.reflect.generics.parser",
143144
],
144145
"jdk.internal.vm.ci" : [
145146
"jdk.vm.ci.meta",
147+
"jdk.vm.ci.meta.annotation",
146148
"jdk.vm.ci.code",
147149
"jdk.vm.ci.code.site",
148150
"jdk.vm.ci.code.stack",
@@ -190,6 +192,10 @@
190192
"jdk.graal.compiler.jtt",
191193
"jdk.graal.compiler.truffle.test",
192194
],
195+
# Direct reference to jdk.vm.ci.meta.annotation and
196+
# jdk.vm.ci.meta.ResolvedJavaRecordComponent causes
197+
# spotbugs analysis to fail with "missing class" error.
198+
"spotbugs": "false",
193199
},
194200

195201
"jdk.graal.compiler.processor" : {
@@ -204,11 +210,37 @@
204210
"javaCompliance" : "21+",
205211
},
206212

213+
# Definition of classes that jdk.graal.compiler.test compiles against.
214+
# An alternative version of these classes is provided by jdk.graal.compiler.test.runtime.
215+
"jdk.graal.compiler.test.compiletime" : {
216+
"subDir" : "src",
217+
"sourceDirs" : ["src"],
218+
"checkstyle" : "jdk.graal.compiler",
219+
"javaCompliance" : "24+",
220+
"forceJavac": True,
221+
"jacoco" : "exclude",
222+
"testProject" : True,
223+
},
224+
225+
# Alternative definition of classes in jdk.graal.compiler.test.compiletime
226+
# that jdk.graal.compiler.test runs against. See _replace_graal_test_deps
227+
# in mx_compiler.py.
228+
"jdk.graal.compiler.test.runtime" : {
229+
"subDir" : "src",
230+
"sourceDirs" : ["src"],
231+
"checkstyle" : "jdk.graal.compiler",
232+
"javaCompliance" : "24+",
233+
"forceJavac": True,
234+
"jacoco" : "exclude",
235+
"testProject" : True,
236+
},
237+
207238
"jdk.graal.compiler.test" : {
208239
"subDir" : "src",
209240
"sourceDirs" : ["src"],
210241
"dependencies" : [
211242
"jdk.graal.compiler",
243+
"GRAAL_TEST_COMPILETIME",
212244
"mx:JUNIT",
213245
"JAVA_ALLOCATION_INSTRUMENTER",
214246
"truffle:TRUFFLE_SL_TEST",
@@ -228,8 +260,10 @@
228260
"java.base" : [
229261
"jdk.internal.module",
230262
"jdk.internal.misc",
263+
"jdk.internal.reflect",
231264
"jdk.internal.util",
232265
"jdk.internal.vm.annotation",
266+
"sun.reflect.annotation",
233267
"sun.security.util.math",
234268
"sun.security.util.math.intpoly",
235269
],
@@ -238,6 +272,7 @@
238272
],
239273
"jdk.internal.vm.ci" : [
240274
"jdk.vm.ci.meta",
275+
"jdk.vm.ci.meta.annotation",
241276
"jdk.vm.ci.code",
242277
"jdk.vm.ci.code.site",
243278
"jdk.vm.ci.code.stack",
@@ -408,6 +443,7 @@
408443
"jdk.internal.vm.ci" : [
409444
"jdk.vm.ci.code",
410445
"jdk.vm.ci.meta",
446+
"jdk.vm.ci.meta.annotation",
411447
"jdk.vm.ci.runtime",
412448
"jdk.vm.ci.services",
413449
"jdk.vm.ci.hotspot",
@@ -420,7 +456,7 @@
420456
],
421457

422458
# Direct reference to jdk.vm.ci.hotspot.CompilerThreadCanCallJavaScope
423-
# causing spotbugs analysis to fail with "missing class" error.
459+
# causes spotbugs analysis to fail with "missing class" error.
424460
"spotbugs": "false",
425461
},
426462

@@ -449,13 +485,34 @@
449485

450486
# ------------- Distributions -------------
451487

488+
# Compile time dependency for GRAAL_TEST
489+
"GRAAL_TEST_COMPILETIME": {
490+
"subDir": "src",
491+
"dependencies": [
492+
"jdk.graal.compiler.test.compiletime",
493+
],
494+
"testDistribution": True,
495+
"maven": False,
496+
},
497+
498+
# Run time dependency for GRAAL_TEST
499+
"GRAAL_TEST_RUNTIME": {
500+
"subDir": "src",
501+
"dependencies": [
502+
"jdk.graal.compiler.test.runtime",
503+
],
504+
"testDistribution": True,
505+
"maven": False,
506+
},
507+
452508
"GRAAL_TEST" : {
453509
"subDir" : "src",
454510
"dependencies" : [
455511
"jdk.graal.compiler.test",
456512
],
457513
"distDependencies" : [
458514
"GRAAL",
515+
"GRAAL_TEST_COMPILETIME",
459516
"truffle:TRUFFLE_SL_TEST",
460517
"truffle:TRUFFLE_TEST",
461518
"truffle:TRUFFLE_COMPILER",

0 commit comments

Comments
 (0)