Skip to content

Commit 3280f95

Browse files
committed
[GR-49610] Rename jdk.compiler.graal to jdk.graal.compiler.
PullRequest: graal/15861
2 parents ed7be85 + 9cace30 commit 3280f95

File tree

4,356 files changed

+34200
-34199
lines changed

Some content is hidden

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

4,356 files changed

+34200
-34199
lines changed

ci/common.jsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,9 @@ local common_json = import "../common.json";
270270

271271
local common = mx + {
272272
catch_files+: [
273-
# Keep in sync with jdk.compiler.graal.debug.StandardPathUtilitiesProvider#DIAGNOSTIC_OUTPUT_DIRECTORY_MESSAGE_REGEXP
273+
# Keep in sync with jdk.graal.compiler.debug.StandardPathUtilitiesProvider#DIAGNOSTIC_OUTPUT_DIRECTORY_MESSAGE_REGEXP
274274
"Graal diagnostic output saved in '(?P<filename>[^']+)'",
275-
# Keep in sync with jdk.compiler.graal.debug.DebugContext#DUMP_FILE_MESSAGE_REGEXP
275+
# Keep in sync with jdk.graal.compiler.debug.DebugContext#DUMP_FILE_MESSAGE_REGEXP
276276
"Dumping debug output to '(?P<filename>[^']+)'",
277277
# Keep in sync with com.oracle.svm.hosted.NativeImageOptions#DEFAULT_ERROR_FILE_NAME
278278
" (?P<filename>.+/svm_err_b_\\d+T\\d+\\.\\d+_pid\\d+\\.md)",

ci_includes/publish-javadoc.jsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
["zip", "-r", "javadoc.zip", "javadoc"],
2121
["cd", "../compiler"],
2222
["mx", "build"],
23-
["mx", "javadoc", "--projects", "jdk.compiler.graal", "--packages", "jdk.compiler.graal.graphio"],
24-
["cd", "src/jdk.compiler.graal/"],
23+
["mx", "javadoc", "--projects", "jdk.graal.compiler", "--packages", "jdk.graal.compiler.graphio"],
24+
["cd", "src/jdk.graal.compiler/"],
2525
["zip", "-r", "../../graphio-javadoc.zip", "javadoc"],
2626
["cd", "../../.."],
2727
["set-export", "GRAAL_REPO", ["pwd"]],

common.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@
3535
"labsjdk-ee-20-llvm": {"name": "labsjdk", "version": "ee-20.0.2+2-jvmci-23.1-b02-sulong", "platformspecific": true },
3636

3737
"oraclejdk21": {"name": "jpg-jdk", "version": "21", "build_id": "33", "release": true, "platformspecific": true, "extrabundles": ["static-libs"]},
38-
"labsjdk-ce-21": {"name": "labsjdk", "version": "ce-21+35-jvmci-23.1-b21", "platformspecific": true },
39-
"labsjdk-ce-21Debug": {"name": "labsjdk", "version": "ce-21+35-jvmci-23.1-b21-debug", "platformspecific": true },
40-
"labsjdk-ce-21-llvm": {"name": "labsjdk", "version": "ce-21+35-jvmci-23.1-b21-sulong", "platformspecific": true },
41-
"labsjdk-ee-21": {"name": "labsjdk", "version": "ee-21.0.1+11-jvmci-23.1-b21", "platformspecific": true },
42-
"labsjdk-ee-21Debug": {"name": "labsjdk", "version": "ee-21.0.1+11-jvmci-23.1-b21-debug", "platformspecific": true },
43-
"labsjdk-ee-21-llvm": {"name": "labsjdk", "version": "ee-21.0.1+11-jvmci-23.1-b21-sulong", "platformspecific": true },
38+
"labsjdk-ce-21": {"name": "labsjdk", "version": "ce-21.0.1+12-jvmci-23.1-b22", "platformspecific": true },
39+
"labsjdk-ce-21Debug": {"name": "labsjdk", "version": "ce-21.0.1+12-jvmci-23.1-b22-debug", "platformspecific": true },
40+
"labsjdk-ce-21-llvm": {"name": "labsjdk", "version": "ce-21.0.1+12-jvmci-23.1-b22-sulong", "platformspecific": true },
41+
"labsjdk-ee-21": {"name": "labsjdk", "version": "ee-21.0.1+11-jvmci-23.1-b22", "platformspecific": true },
42+
"labsjdk-ee-21Debug": {"name": "labsjdk", "version": "ee-21.0.1+11-jvmci-23.1-b22-debug", "platformspecific": true },
43+
"labsjdk-ee-21-llvm": {"name": "labsjdk", "version": "ee-21.0.1+11-jvmci-23.1-b22-sulong", "platformspecific": true },
4444

4545
"oraclejdk-latest": {"name": "jpg-jdk", "version": "22", "build_id": "18", "release": true, "platformspecific": true, "extrabundles": ["static-libs"]},
46-
"labsjdk-ce-latest": {"name": "labsjdk", "version": "ce-22+18-jvmci-b02", "platformspecific": true },
47-
"labsjdk-ce-latestDebug": {"name": "labsjdk", "version": "ce-22+18-jvmci-b02-debug", "platformspecific": true },
48-
"labsjdk-ce-latest-llvm": {"name": "labsjdk", "version": "ce-22+18-jvmci-b02-sulong", "platformspecific": true },
49-
"labsjdk-ee-latest": {"name": "labsjdk", "version": "ee-22+18-jvmci-b02", "platformspecific": true },
50-
"labsjdk-ee-latestDebug": {"name": "labsjdk", "version": "ee-22+18-jvmci-b02-debug", "platformspecific": true },
51-
"labsjdk-ee-latest-llvm": {"name": "labsjdk", "version": "ee-22+18-jvmci-b02-sulong", "platformspecific": true }
46+
"labsjdk-ce-latest": {"name": "labsjdk", "version": "ce-22+18-jvmci-b03", "platformspecific": true },
47+
"labsjdk-ce-latestDebug": {"name": "labsjdk", "version": "ce-22+18-jvmci-b03-debug", "platformspecific": true },
48+
"labsjdk-ce-latest-llvm": {"name": "labsjdk", "version": "ce-22+18-jvmci-b03-sulong", "platformspecific": true },
49+
"labsjdk-ee-latest": {"name": "labsjdk", "version": "ee-22+18-jvmci-b03", "platformspecific": true },
50+
"labsjdk-ee-latestDebug": {"name": "labsjdk", "version": "ee-22+18-jvmci-b03-debug", "platformspecific": true },
51+
"labsjdk-ee-latest-llvm": {"name": "labsjdk", "version": "ee-22+18-jvmci-b03-sulong", "platformspecific": true }
5252
},
5353

5454
"eclipse": {

compiler/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
This changelog summarizes newly introduced optimizations and other compiler related changes.
44

55
## GraalVM for JDK 22 (Internal Version 24.0.0)
6-
* (GR-48318): The Graal module has been renamed from `jdk.internal.vm.compiler` to `jdk.compiler.graal`.
7-
Likewise, the compiler packages moved into the `jdk.compiler.graal` namespace.
6+
* (GR-49610): The Graal module has been renamed from `jdk.internal.vm.compiler` to `jdk.graal.compiler`.
7+
Likewise, the compiler packages moved into the `jdk.graal.compiler` namespace.
88
These renamings were done in preparation for [Project Galahad](https://openjdk.org/projects/galahad/).
99

1010
## GraalVM for JDK 21 (Internal Version 23.1.0)

compiler/docs/CompilationPlanFuzzing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Compilation plan fuzzing
22
This page covers the creation and usage of fuzzed compilation plans instead of the usual phase orderings specified by the different `CompilerConfiguration`s.
33
## Abstraction design
4-
The following design can be found in the package `jdk.compiler.graal.core.phases.fuzzing`.
4+
The following design can be found in the package `jdk.graal.compiler.core.phases.fuzzing`.
55
### Diagram
66
```
77
Suites > FuzzedSuites

compiler/docs/Debugging.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ In addition to IDE debugging, there is support for *printf* style debugging.
3838
The simplest is to place temporary usages of `System.out` where ever you need them.
3939

4040
For more permanent logging statements, use the `log(...)` methods in
41-
[`DebugContext`](../src/jdk.compiler.graal.debug/src/jdk/compiler/graal/debug/DebugContext.java).
41+
[`DebugContext`](../src/jdk.graal.compiler.debug/src/jdk/graal/compiler/debug/DebugContext.java).
4242
A (nestable) debug scope is entered via one of the `scope(...)` methods in that class. For example:
4343

4444
```java
@@ -54,9 +54,9 @@ try (Scope s = debug.scope("CodeInstall", method)) {
5454

5555
The `debug.log` statement will send output to the console if `CodeInstall` is matched by the
5656
`-Dgraal.Log` option. The matching logic for this option is implemented in
57-
[DebugFilter](../src/jdk.compiler.graal/src/jdk/compiler/graal/debug/DebugFilter.java)
57+
[DebugFilter](../src/jdk.graal.compiler/src/jdk/graal/compiler/debug/DebugFilter.java)
5858
and documented in the
59-
[Dump help message](../src/jdk.compiler.graal/src/jdk/compiler/graal/debug/doc-files/DumpHelp.txt). As
59+
[Dump help message](../src/jdk.graal.compiler/src/jdk/graal/compiler/debug/doc-files/DumpHelp.txt). As
6060
mentioned in the javadoc, the same matching logic also applies to the `-Dgraal.Dump`,
6161
`-Dgraal.Time`, `-Dgraal.Count` and `-Dgraal.TrackMemUse` options.
6262

@@ -194,9 +194,9 @@ Specifying one of the debug scope options (i.e., `-Dgraal.Log`, `-Dgraal.Dump`,
194194
interesting in compiler output related to a single or few methods. In this case, use the
195195
`-Dgraal.MethodFilter` option to specify a method filter. The matching logic for this option is
196196
described in
197-
[MethodFilter](../src/jdk.compiler.graal/src/jdk/compiler/graal/debug/MethodFilter.java#L33-L92)
197+
[MethodFilter](../src/jdk.graal.compiler/src/jdk/graal/compiler/debug/MethodFilter.java#L33-L92)
198198
and documented in the
199-
[MethodFilter help message](../src/jdk.compiler.graal/src/jdk/compiler/graal/debug/doc-files/MethodFilterHelp.txt).
199+
[MethodFilter help message](../src/jdk.graal.compiler/src/jdk/graal/compiler/debug/doc-files/MethodFilterHelp.txt).
200200

201201
## Metric filtering
202202

@@ -214,7 +214,7 @@ In addition to logging, there is support for generating (or dumping) more detail
214214
visualizations of certain compiler data structures. Currently, there is support for dumping:
215215

216216
* HIR graphs (i.e., instances of
217-
[Graph](../src/jdk.compiler.graal/src/jdk/compiler/graal/graph/Graph.java)) to the
217+
[Graph](../src/jdk.graal.compiler/src/jdk/graal/compiler/graph/Graph.java)) to the
218218
[Ideal Graph Visualizer (IGV)](../../docs/tools/ideal-graph-visualizer.md), and
219219
* LIR register allocation and generated code to the [C1Visualizer](https://github.com/zakkak/c1visualizer)
220220

@@ -258,8 +258,8 @@ java version "1.8.0_212"
258258
Java(TM) SE Runtime Environment (build 1.8.0_212-b31)
259259
Java HotSpot(TM) 64-Bit Server VM (build 25.212-b31-jvmci-20-b01, mixed mode)
260260
> find dumps/1497910458736 -type f
261-
dumps/1497910458736/HotSpotCompilation-539[jdk.compiler.graal.graph.Node.updateUsages(Node, Node)].bgv
262-
dumps/1497910458736/HotSpotCompilation-539[jdk.compiler.graal.graph.Node.updateUsages(Node, Node)].cfg
261+
dumps/1497910458736/HotSpotCompilation-539[jdk.graal.compiler.graph.Node.updateUsages(Node, Node)].bgv
262+
dumps/1497910458736/HotSpotCompilation-539[jdk.graal.compiler.graph.Node.updateUsages(Node, Node)].cfg
263263
```
264264

265265
As you become familiar with the scope names used in the compiler, you can refine the `-Dgraal.Dump` option

compiler/docs/JMH.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ mx benchmark jmh-whitebox:* --results-file=results.json -- --jvm-config=graal-co
133133

134134
The command above runs all *whitebox* benchmarks.
135135
That are all benchmark distributions that have either a dependency on a `GRAAL*` distribution,
136-
or include projects starting with `jdk.compiler.graal` in their distribution jar.
136+
or include projects starting with `jdk.graal.compiler` in their distribution jar.
137137

138138

139139
Refer to the [mx documentation][mx in-repo] for further information.

compiler/mx.compiler/mx_compiler.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def compare(this_version, other_version, jdk):
106106
cached = JavaLangRuntimeVersion._cmp_cache.get(key, None)
107107
if cached is not None:
108108
return cached
109-
source_path = join(_suite.dir, 'src', 'jdk.compiler.graal', 'src', 'org', 'graalvm', 'compiler',
109+
source_path = join(_suite.dir, 'src', 'jdk.graal.compiler', 'src', 'jdk', 'graal', 'compiler',
110110
'hotspot',
111111
'JVMCIVersionCompare.java')
112112
out = mx.OutputCapture()
@@ -155,7 +155,7 @@ def _capture_jvmci_version(args=None):
155155

156156
@mx.command(_suite.name, 'jvmci-version-check')
157157
def _run_jvmci_version_check(args=None, jdk=jdk, **kwargs):
158-
source_path = join(_suite.dir, 'src', 'jdk.compiler.graal', 'src', 'jdk', 'compiler', 'graal', 'hotspot',
158+
source_path = join(_suite.dir, 'src', 'jdk.graal.compiler', 'src', 'jdk', 'graal', 'compiler', 'hotspot',
159159
'JVMCIVersionCheck.java')
160160
return mx.run([jdk.java, '-Xlog:disable', source_path] + (args or []), **kwargs)
161161

@@ -164,7 +164,7 @@ def _run_jvmci_version_check(args=None, jdk=jdk, **kwargs):
164164
_check_jvmci_version(jdk)
165165

166166
mx_gate.add_jacoco_includes(['org.graalvm.*'])
167-
mx_gate.add_jacoco_includes(['jdk.compiler.graal.*'])
167+
mx_gate.add_jacoco_includes(['jdk.graal.compiler.*'])
168168
mx_gate.add_jacoco_excludes(['com.oracle.truffle'])
169169
mx_gate.add_jacoco_excluded_annotations(['@Snippet', '@ClassSubstitution', '@ExcludeFromJacocoInstrumentation'])
170170

@@ -227,7 +227,7 @@ def _ctw_system_properties_suffix():
227227
out.data = 'System properties for CTW:\n\n'
228228
args = ['-XX:+EnableJVMCI'] + _ctw_jvmci_export_args()
229229
cp = _remove_redundant_entries(mx.classpath('GRAAL_TEST', jdk=jdk))
230-
args.extend(['-cp', cp, '-DCompileTheWorld.Help=true', 'jdk.compiler.graal.hotspot.test.CompileTheWorld'])
230+
args.extend(['-cp', cp, '-DCompileTheWorld.Help=true', 'jdk.graal.compiler.hotspot.test.CompileTheWorld'])
231231
run_java(args, out=out, addDefaultArgs=False)
232232
return out.data
233233

@@ -280,7 +280,7 @@ def ctw(args, extraVMarguments=None):
280280
vmargs.append('-DCompileTheWorld.Classpath=' + cp)
281281
cp = _remove_redundant_entries(mx.classpath('GRAAL_TEST', jdk=jdk))
282282
vmargs.extend(_ctw_jvmci_export_args() + ['-cp', cp])
283-
mainClassAndArgs = ['jdk.compiler.graal.hotspot.test.CompileTheWorld']
283+
mainClassAndArgs = ['jdk.graal.compiler.hotspot.test.CompileTheWorld']
284284

285285
run_vm(vmargs + mainClassAndArgs)
286286

@@ -467,7 +467,7 @@ def _check_forbidden_imports(projects, package_substrings, exceptions=None):
467467
def compiler_gate_runner(suites, unit_test_runs, bootstrap_tests, tasks, extraVMarguments=None, extraUnitTestArguments=None):
468468
with Task('CheckForbiddenImports:Compiler', tasks, tags=['style']) as t:
469469
# Ensure HotSpot-independent compiler classes do not import HotSpot-specific classes
470-
if t: _check_forbidden_imports([mx.project('jdk.compiler.graal')], ('hotspot', 'libgraal'))
470+
if t: _check_forbidden_imports([mx.project('jdk.graal.compiler')], ('hotspot', 'libgraal'))
471471

472472
with Task('JDK_java_base_test', tasks, tags=['javabasetest'], report=True) as t:
473473
if t: java_base_unittest(_remove_empty_entries(extraVMarguments) + [])
@@ -783,7 +783,7 @@ def _unittest_config_participant(config):
783783
# for the junit harness which uses reflection to find @Test methods. In addition, the
784784
# tests widely use JVMCI classes so JVMCI needs to also export all its packages to
785785
# ALL-UNNAMED.
786-
mainClassArgs.extend(['-JUnitOpenPackages', 'jdk.internal.vm.ci/*=org.graalvm.truffle.runtime,jdk.compiler.graal,ALL-UNNAMED'])
786+
mainClassArgs.extend(['-JUnitOpenPackages', 'jdk.internal.vm.ci/*=org.graalvm.truffle.runtime,jdk.graal.compiler,ALL-UNNAMED'])
787787

788788
limited_modules = None
789789
for arg in vmArgs:
@@ -1051,7 +1051,7 @@ def collate_metrics(args):
10511051
if not filename.endswith('.csv'):
10521052
mx.abort('Cannot collate metrics from non-CSV files: ' + filename)
10531053

1054-
# Keep in sync with jdk.compiler.graal.debug.GlobalMetrics.print(OptionValues)
1054+
# Keep in sync with jdk.graal.compiler.debug.GlobalMetrics.print(OptionValues)
10551055
abs_filename = join(os.getcwd(), filename)
10561056
directory = dirname(abs_filename)
10571057
rootname = basename(filename)[0:-len('.csv')]
@@ -1279,7 +1279,7 @@ def add_serviceprovider(service, provider, version):
12791279
else:
12801280
version = None
12811281
provider = arcname[:-len('.class'):].replace('/', '.')
1282-
service = 'jdk.compiler.graal.options.OptionDescriptors'
1282+
service = 'jdk.graal.compiler.options.OptionDescriptors'
12831283
add_serviceprovider(service, provider, version)
12841284
return False
12851285

@@ -1364,7 +1364,7 @@ def phaseplan_fuzz_jtt_tests(args, extraVMarguments=None, extraUnitTestArguments
13641364
target_tests.append(arg)
13651365
args.remove(arg)
13661366
if not target_tests:
1367-
target_tests = ['jdk.compiler.graal.jtt.']
1367+
target_tests = ['jdk.graal.compiler.jtt.']
13681368

13691369
for test in target_tests:
13701370
UnitTestRun("Fuzz phase plan for tests matching substring " + test, [], tags=GraalTags.unittest + GraalTags.phaseplan_fuzz_jtt_tests).\

compiler/mx.compiler/mx_graal_benchmark.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def subgroup(self):
517517
def whitebox_dependency(dist):
518518
return itertools.chain(
519519
(dep.name.startswith('GRAAL') for dep in dist.deps),
520-
(dep.name.startswith('jdk.compiler.graal') for dep in dist.archived_deps())
520+
(dep.name.startswith('jdk.graal.compiler') for dep in dist.archived_deps())
521521
)
522522

523523
def filter_distribution(self, dist):
@@ -533,7 +533,7 @@ def extraVmArgs(self):
533533
'--add-exports=jdk.internal.vm.ci/jdk.vm.ci.runtime=ALL-UNNAMED',
534534
'--add-exports=jdk.internal.vm.ci/jdk.vm.ci.meta=ALL-UNNAMED',
535535
'--add-exports=jdk.internal.vm.ci/jdk.vm.ci.code=ALL-UNNAMED',
536-
'--add-exports=jdk.compiler.graal/jdk.compiler.graal.graph=ALL-UNNAMED',
536+
'--add-exports=jdk.graal.compiler/jdk.graal.compiler.graph=ALL-UNNAMED',
537537
'--add-exports=org.graalvm.truffle/com.oracle.truffle.api.benchmark=ALL-UNNAMED',
538538
'--add-exports=org.graalvm.truffle/com.oracle.truffle.api.debug=ALL-UNNAMED',
539539
'--add-exports=org.graalvm.truffle/com.oracle.truffle.api.library=ALL-UNNAMED',

0 commit comments

Comments
 (0)