Skip to content

Commit fe56a82

Browse files
committed
[GR-32352] Switch from JDK 16 to JDK 17
PullRequest: truffleruby/2877
2 parents 153f816 + f105ded commit fe56a82

File tree

5 files changed

+16
-20
lines changed

5 files changed

+16
-20
lines changed

common.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
"labsjdk-ce-11": {"name": "labsjdk", "version": "ce-11.0.12+5-jvmci-21.3-b01", "platformspecific": true },
1212
"labsjdk-ee-11": {"name": "labsjdk", "version": "ee-11.0.13+2-jvmci-21.3-b01", "platformspecific": true },
1313

14-
"oraclejdk16": {"name": "oraclejdk", "version": "16.0.1+4", "platformspecific": true },
15-
"labsjdk-ce-16": {"name": "labsjdk", "version": "ce-16.0.2+7-jvmci-21.2-b05", "platformspecific": true },
16-
"labsjdk-ce-16Debug": {"name": "labsjdk", "version": "ce-16.0.2+7-jvmci-21.2-b05-debug", "platformspecific": true },
17-
"labsjdk-ee-16": {"name": "labsjdk", "version": "ee-16.0.2+7-jvmci-21.2-b05", "platformspecific": true },
18-
"labsjdk-ee-16Debug": {"name": "labsjdk", "version": "ee-16.0.2+7-jvmci-21.2-b05-debug", "platformspecific": true }
14+
"oraclejdk17": {"name": "oraclejdk", "version": "17.0.1+2", "platformspecific": true },
15+
"labsjdk-ce-17": {"name": "labsjdk", "version": "ce-17+26-jvmci-21.3-b01", "platformspecific": true },
16+
"labsjdk-ce-17Debug": {"name": "labsjdk", "version": "ce-17+26-jvmci-21.3-b01-debug", "platformspecific": true },
17+
"labsjdk-ee-17": {"name": "labsjdk", "version": "ee-17.0.1+1-jvmci-21.3-b01", "platformspecific": true },
18+
"labsjdk-ee-17Debug": {"name": "labsjdk", "version": "ee-17.0.1+1-jvmci-21.3-b01-debug", "platformspecific": true }
1919
},
2020

2121
"COMMENT" : "The devkits versions reflect those used to build the JVMCI JDKs (e.g., see devkit_platform_revisions in <jdk>/make/conf/jib-profiles.js)",
2222
"devkits": {
2323
"windows-oraclejdk8": { "packages" : { "devkit:VS2017-15.9.16+1" : "==0" }},
2424
"windows-openjdk8": { "packages" : { "devkit:VS2017-15.9.16+1" : "==0" }},
2525
"windows-jdk11": { "packages" : { "devkit:VS2017-15.9.24+1" : "==0" }},
26-
"windows-jdk16": { "packages" : { "devkit:VS2019-16.7.2+1" : "==1" }}
26+
"windows-jdk17": { "packages" : { "devkit:VS2019-16.9.3+1" : "==0" }}
2727
},
2828
"deps": {
2929
"common": {

mx.truffleruby/suite.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
suite = {
2-
"mxversion": "5.302.0",
2+
"mxversion": "5.309.0",
33
"name": "truffleruby",
44

55
"imports": {
66
"suites": [
77
{
88
"name": "regex",
99
"subdir": True,
10-
"version": "3ecf62bb01af00121fad8f9b7b13ef5740e0695e",
10+
"version": "619ab20d4a1ed0a1acb4b18f47f6913008c7adbc",
1111
"urls": [
1212
{"url": "https://github.com/oracle/graal.git", "kind": "git"},
1313
{"url": "https://curio.ssw.jku.at/nexus/content/repositories/snapshots", "kind": "binary"},
@@ -16,7 +16,7 @@
1616
{
1717
"name": "sulong",
1818
"subdir": True,
19-
"version": "3ecf62bb01af00121fad8f9b7b13ef5740e0695e",
19+
"version": "619ab20d4a1ed0a1acb4b18f47f6913008c7adbc",
2020
"urls": [
2121
{"url": "https://github.com/oracle/graal.git", "kind": "git"},
2222
{"url": "https://curio.ssw.jku.at/nexus/content/repositories/snapshots", "kind": "binary"},

src/main/java/org/truffleruby/builtins/YieldingCoreMethodNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public abstract class YieldingCoreMethodNode extends CoreMethodArrayArgumentsNod
1616

1717
@Child private CallBlockNode yieldNode = CallBlockNode.create();
1818

19-
// Not called yield() because that warns in JDK16
19+
// Not called yield() because that warns in Java 13+
2020
public Object callBlock(RubyProc block, Object... arguments) {
2121
return yieldNode.yield(block, arguments);
2222
}

src/processor/java/org/truffleruby/processor/CoreModuleChecks.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@
1919
import javax.lang.model.type.TypeKind;
2020
import javax.lang.model.type.TypeMirror;
2121

22-
import com.oracle.truffle.api.dsl.CachedLanguage;
2322
import org.truffleruby.builtins.CoreMethod;
2423

2524
import com.oracle.truffle.api.dsl.Cached;
26-
import com.oracle.truffle.api.dsl.CachedContext;
2725
import com.oracle.truffle.api.dsl.Specialization;
2826
import com.oracle.truffle.api.library.CachedLibrary;
2927

@@ -214,9 +212,7 @@ private static int getLastParameterIndex(List<? extends VariableElement> paramet
214212
// Ignore all the @Cached methods from our consideration.
215213
while (n >= 0 &&
216214
(parameters.get(n).getAnnotation(Cached.class) != null ||
217-
parameters.get(n).getAnnotation(CachedLibrary.class) != null ||
218-
parameters.get(n).getAnnotation(CachedContext.class) != null ||
219-
parameters.get(n).getAnnotation(CachedLanguage.class) != null)) {
215+
parameters.get(n).getAnnotation(CachedLibrary.class) != null)) {
220216
n--;
221217
}
222218
return n;

tool/jt.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ def help
710710
Default value is --use jvm, therefore all commands run on truffleruby-jvm by default.
711711
The default can be changed with `export RUBY_BIN=RUBY_SELECTOR`
712712
--silent Does not print the command and which Ruby is used
713-
--jdk Specifies which version of the JDK should be used: 8, 11 (default) or 16
713+
--jdk Specifies which version of the JDK should be used: 8, 11 (default) or 17
714714
715715
jt build [graalvm|parser|options] ... by default it builds graalvm
716716
jt build [parser|options] [options]
@@ -812,7 +812,7 @@ def help
812812
OPENSSL_PREFIX Where to find OpenSSL headers and libraries
813813
ECLIPSE_EXE Where to find Eclipse
814814
SYSTEM_RUBY The Ruby interpreter to run 'jt' itself, when using 'bin/jt'
815-
JT_JDK The default JDK version to use: 8, 11 (default) or 16
815+
JT_JDK The default JDK version to use: 8, 11 (default) or 17
816816
JT_ENV The default value for 'jt build --env JT_ENV' and for 'jt --use JT_ENV'
817817
JT_PROFILE_SUBCOMMANDS Print the time each subprocess takes on stderr
818818
TXT
@@ -2024,8 +2024,8 @@ def install(name, *options)
20242024
jdk_name = ee ? 'oraclejdk8' : 'openjdk8'
20252025
elsif jdk_version == 11
20262026
jdk_name = ee ? 'labsjdk-ee-11' : 'labsjdk-ce-11'
2027-
elsif jdk_version == 16
2028-
jdk_name = ee ? 'labsjdk-ee-16' : 'labsjdk-ce-16'
2027+
elsif jdk_version == 17
2028+
jdk_name = ee ? 'labsjdk-ee-17' : 'labsjdk-ce-17'
20292029
else
20302030
raise "Unknown JDK version: #{jdk_version}"
20312031
end
@@ -2850,7 +2850,7 @@ def process_pre_args(args)
28502850
end
28512851
end
28522852

2853-
raise "Invalid JDK version: #{@jdk_version}" unless [8, 11, 16].include?(@jdk_version)
2853+
raise "Invalid JDK version: #{@jdk_version}" unless [8, 11, 17].include?(@jdk_version)
28542854

28552855
if needs_rebuild
28562856
rebuild

0 commit comments

Comments
 (0)