Skip to content

Commit f29826d

Browse files
[GR-49364] Update to 22+18-jvmci-b01.
PullRequest: graal/15763
2 parents 46b81f3 + f549a82 commit f29826d

File tree

11 files changed

+18
-85
lines changed

11 files changed

+18
-85
lines changed

common.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@
4242
"labsjdk-ee-21Debug": {"name": "labsjdk", "version": "ee-21+35-jvmci-23.1-b15-debug", "platformspecific": true },
4343
"labsjdk-ee-21-llvm": {"name": "labsjdk", "version": "ee-21+35-jvmci-23.1-b15-sulong", "platformspecific": true },
4444

45-
"oraclejdk-latest": {"name": "jpg-jdk", "version": "22", "build_id": "17", "release": true, "platformspecific": true, "extrabundles": ["static-libs"]},
46-
"labsjdk-ce-latest": {"name": "labsjdk", "version": "ce-22+17-jvmci-b01", "platformspecific": true },
47-
"labsjdk-ce-latestDebug": {"name": "labsjdk", "version": "ce-22+17-jvmci-b01-debug", "platformspecific": true },
48-
"labsjdk-ce-latest-llvm": {"name": "labsjdk", "version": "ce-22+17-jvmci-b01-sulong", "platformspecific": true },
49-
"labsjdk-ee-latest": {"name": "labsjdk", "version": "ee-22+17-jvmci-b01", "platformspecific": true },
50-
"labsjdk-ee-latestDebug": {"name": "labsjdk", "version": "ee-22+17-jvmci-b01-debug", "platformspecific": true },
51-
"labsjdk-ee-latest-llvm": {"name": "labsjdk", "version": "ee-22+17-jvmci-b01-sulong", "platformspecific": true }
45+
"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-b01", "platformspecific": true },
47+
"labsjdk-ce-latestDebug": {"name": "labsjdk", "version": "ce-22+18-jvmci-b01-debug", "platformspecific": true },
48+
"labsjdk-ce-latest-llvm": {"name": "labsjdk", "version": "ce-22+18-jvmci-b01-sulong", "platformspecific": true },
49+
"labsjdk-ee-latest": {"name": "labsjdk", "version": "ee-22+18-jvmci-b01", "platformspecific": true },
50+
"labsjdk-ee-latestDebug": {"name": "labsjdk", "version": "ee-22+18-jvmci-b01-debug", "platformspecific": true },
51+
"labsjdk-ee-latest-llvm": {"name": "labsjdk", "version": "ee-22+18-jvmci-b01-sulong", "platformspecific": true }
5252
},
5353

5454
"eclipse": {

compiler/src/jdk.internal.vm.compiler/src/org/graalvm/compiler/hotspot/GraalHotSpotVMConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private HotSpotGraalRuntime.HotSpotGC getSelectedGC() throws GraalError {
120120
public final int hugeMethodLimit = getFlag("HugeMethodLimit", Integer.class);
121121
public final boolean printInlining = getFlag("PrintInlining", Boolean.class);
122122
public final boolean inline = getFlag("Inline", Boolean.class);
123-
public final boolean useFastLocking = getFlag("JVMCIUseFastLocking", Boolean.class);
123+
public final boolean useFastLocking = getFlag("JVMCIUseFastLocking", Boolean.class, true, !(JDK >= 22 && JDK_BUILD >= 18));
124124
private final boolean useHeavyMonitors = JDK < 22 && getFlag("UseHeavyMonitors", Boolean.class);
125125

126126
// Use only heavy monitors for locking

compiler/src/jdk.internal.vm.compiler/src/org/graalvm/compiler/hotspot/GraalHotSpotVMConfigAccess.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public static boolean jvmciGE(Version v) {
115115
}
116116

117117
public static final int JDK = Runtime.version().feature();
118-
public static final int JDK_UPDATE = Runtime.version().update();
118+
public static final int JDK_BUILD = Runtime.version().build().orElse(0);
119119
public static final Version JVMCI_VERSION;
120120
public static final boolean JVMCI;
121121
public static final boolean JDK_PRERELEASE;

compiler/src/jdk.internal.vm.compiler/src/org/graalvm/compiler/hotspot/JVMCIVersionCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public final class JVMCIVersionCheck {
4848
*/
4949
private static final Map<String, Version> JVMCI_MIN_VERSIONS = Map.of(
5050
"21", new Version(23, 1, 15),
51-
"22", new Version("22+17", 1));
51+
"22", new Version("22+18", 1));
5252

5353
private static final int NA = 0;
5454
/**

sdk/ci/ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
downloads+: {
77
EXTRA_JAVA_HOMES: common.jdks_data['oraclejdk21'],
88
},
9-
name: 'gate-sdk-oraclejdk' + self.jdk_version + '-' + self.os + '-' + self.arch,
9+
name: 'gate-sdk-oracle' + self.jdk_name + '-' + self.os + '-' + self.arch,
1010
setup: [
1111
["cd", "./sdk"],
1212
],

substratevm/mx.substratevm/mx_substratevm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1681,7 +1681,7 @@ def collector(line):
16811681
else:
16821682
# Linux objdump objdump --wide --syms
16831683
# 0000000000000000 *UND* 0000000000000000 JVM_InitStackTraceElement
1684-
found_undef = line_tokens[1] = '*UND*'
1684+
found_undef = line_tokens[1] == '*UND*'
16851685
if found_undef:
16861686
symbol_candiate = line_tokens[-1]
16871687
mx.logvv('Found undefined symbol: ' + symbol_candiate)

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/JavaLangSubstitutions.java

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import java.io.InputStream;
3333
import java.io.PrintStream;
3434
import java.net.URL;
35-
import java.util.ArrayList;
3635
import java.util.Arrays;
3736
import java.util.Enumeration;
3837
import java.util.List;
@@ -41,7 +40,6 @@
4140
import java.util.concurrent.ConcurrentHashMap;
4241
import java.util.concurrent.ConcurrentMap;
4342
import java.util.function.BooleanSupplier;
44-
import java.util.regex.Pattern;
4543
import java.util.stream.Stream;
4644

4745
import org.graalvm.compiler.replacements.nodes.BinaryMathIntrinsicNode;
@@ -186,73 +184,6 @@ public String intern() {
186184
@Alias //
187185
int hash;
188186

189-
/**
190-
* This is a copy of String.split from the JDK, but with the fastpath loop factored out into a
191-
* separate method. This allows inlining and constant folding of the condition for call sites
192-
* where the regex is a constant (which is a common usage pattern).
193-
*
194-
* JDK-8262994 should make that refactoring in OpenJDK, after which this substitution can be
195-
* removed.
196-
*/
197-
@Substitute
198-
public String[] split(String regex, int limit) {
199-
/*
200-
* fastpath if the regex is a (1) one-char String and this character is not one of the
201-
* RegEx's meta characters ".$|()[{^?*+\\", or (2) two-char String and the first char is the
202-
* backslash and the second is not the ascii digit or ascii letter.
203-
*/
204-
char ch = 0;
205-
if (((regex.length() == 1 &&
206-
".$|()[{^?*+\\".indexOf(ch = regex.charAt(0)) == -1) ||
207-
(regex.length() == 2 &&
208-
regex.charAt(0) == '\\' &&
209-
(((ch = regex.charAt(1)) - '0') | ('9' - ch)) < 0 &&
210-
((ch - 'a') | ('z' - ch)) < 0 &&
211-
((ch - 'A') | ('Z' - ch)) < 0)) &&
212-
(ch < Character.MIN_HIGH_SURROGATE ||
213-
ch > Character.MAX_LOW_SURROGATE)) {
214-
return StringHelper.simpleSplit(SubstrateUtil.cast(this, String.class), limit, ch);
215-
}
216-
return Pattern.compile(regex).split(SubstrateUtil.cast(this, String.class), limit);
217-
}
218-
}
219-
220-
final class StringHelper {
221-
static String[] simpleSplit(String that, int limit, char ch) {
222-
int off = 0;
223-
int next = 0;
224-
boolean limited = limit > 0;
225-
ArrayList<String> list = new ArrayList<>();
226-
while ((next = that.indexOf(ch, off)) != -1) {
227-
if (!limited || list.size() < limit - 1) {
228-
list.add(that.substring(off, next));
229-
off = next + 1;
230-
} else { // last one
231-
// assert (list.size() == limit - 1);
232-
int last = that.length();
233-
list.add(that.substring(off, last));
234-
off = last;
235-
break;
236-
}
237-
}
238-
// If no match was found, return this
239-
if (off == 0) {
240-
return new String[]{that};
241-
}
242-
// Add remaining segment
243-
if (!limited || list.size() < limit) {
244-
list.add(that.substring(off, that.length()));
245-
}
246-
// Construct result
247-
int resultSize = list.size();
248-
if (limit == 0) {
249-
while (resultSize > 0 && list.get(resultSize - 1).isEmpty()) {
250-
resultSize--;
251-
}
252-
}
253-
String[] result = new String[resultSize];
254-
return list.subList(0, resultSize).toArray(result);
255-
}
256187
}
257188

258189
@TargetClass(className = "java.lang.StringLatin1")

truffle/mx.truffle/suite.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,8 @@
837837
"javaCompliance" : "21+",
838838
"annotationProcessors" : ["TRUFFLE_DSL_PROCESSOR"],
839839
"workingSets" : "Truffle",
840+
# disable SpotBugs as long is panama is preview [GR-49448]
841+
"spotbugs" : "false",
840842
},
841843

842844
"com.oracle.truffle.nfi.backend.spi" : {

truffle/src/com.oracle.truffle.nfi.backend.panama/src/com/oracle/truffle/nfi/backend/panama/ErrorContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public void setNativeErrno(int nativeErrno) {
8888
this.nativeErrno = nativeErrno;
8989
}
9090

91-
@SuppressWarnings("preview")
91+
@SuppressWarnings({"preview", "restricted"})
9292
MemorySegment getErrnoLocation() {
9393
Linker linker = Linker.nativeLinker();
9494
FunctionDescriptor desc = FunctionDescriptor.of(ValueLayout.JAVA_LONG);

truffle/src/com.oracle.truffle.nfi.backend.panama/src/com/oracle/truffle/nfi/backend/panama/PanamaNFIBackend.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected LoadLibraryNode(PanamaNFILanguage language, String name) {
110110
}
111111

112112
@TruffleBoundary
113-
@SuppressWarnings("preview")
113+
@SuppressWarnings({"preview", "restricted"})
114114
private SymbolLookup doLoad() {
115115
PanamaNFIContext ctx = PanamaNFIContext.get(this);
116116
try {

0 commit comments

Comments
 (0)