Skip to content

Commit c628812

Browse files
OracleLabsAutomationzapster
authored andcommitted
[GR-55585] Update labsjdk to 24+7-jvmci-b01
PullRequest: graal/18348
2 parents 3c46c03 + 3cc471d commit c628812

File tree

4 files changed

+42
-11
lines changed

4 files changed

+42
-11
lines changed

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

5757
"eclipse": {

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/hotspot/JVMCIVersionCheck.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public final class JVMCIVersionCheck {
5555
private static final Map<String, Map<String, Version>> JVMCI_MIN_VERSIONS = Map.of(
5656
"21", Map.of(DEFAULT_VENDOR_ENTRY, createLegacyVersion(23, 1, 33)),
5757
"24", Map.of(
58-
"Oracle Corporation", createLabsJDKVersion("24+6", 1),
59-
DEFAULT_VENDOR_ENTRY, createLabsJDKVersion("24+6", 1)));
58+
"Oracle Corporation", createLabsJDKVersion("24+7", 1),
59+
DEFAULT_VENDOR_ENTRY, createLabsJDKVersion("24+7", 1)));
6060
private static final int NA = 0;
6161
/**
6262
* Minimum Java release supported by Graal.

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/container/ContainerLibrary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-24+5/src/hotspot/share/memory/allocation.inline.hpp")
7373
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-24+5/src/hotspot/share/memory/allStatic.hpp")
7474
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-24+5/src/hotspot/share/nmt/memflags.hpp")
75-
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-24+6/src/hotspot/share/runtime/os.cpp")
75+
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-24+7/src/hotspot/share/runtime/os.cpp")
7676
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-24+5/src/hotspot/share/runtime/os.hpp")
7777
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-24+5/src/hotspot/share/runtime/os.inline.hpp")
7878
@BasedOnJDKFile("https://github.com/openjdk/jdk/blob/jdk-24+5/src/hotspot/share/utilities/checkedCast.hpp")

substratevm/src/com.oracle.svm.graal.hotspot.libgraal/src/com/oracle/svm/graal/hotspot/libgraal/truffle/HSTruffleCompilerRuntime.java

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,17 @@
9292
@FromLibGraalEntryPointsResolver(value = TruffleFromLibGraal.Id.class, entryPointsClassName = "com.oracle.truffle.runtime.hotspot.libgraal.TruffleFromLibGraalEntryPoints")
9393
final class HSTruffleCompilerRuntime extends HSObject implements TruffleCompilerRuntime {
9494

95+
private static final Class<?> TRANSLATED_EXCEPTION;
96+
static {
97+
Class<?> clz;
98+
try {
99+
clz = Class.forName("jdk.internal.vm.TranslatedException");
100+
} catch (ClassNotFoundException cnf) {
101+
clz = null;
102+
}
103+
TRANSLATED_EXCEPTION = clz;
104+
}
105+
95106
private final ResolvedJavaType classLoaderDelegate;
96107
final TruffleFromLibGraalCalls calls;
97108

@@ -209,7 +220,27 @@ public ConstantFieldInfo getConstantFieldInfo(ResolvedJavaField field) {
209220
@Override
210221
public ResolvedJavaType resolveType(MetaAccessProvider metaAccess, String className, boolean required) {
211222
String internalName = getInternalName(className);
212-
JavaType jt = runtime().lookupType(internalName, (HotSpotResolvedObjectType) classLoaderDelegate, required);
223+
JavaType jt;
224+
try {
225+
jt = runtime().lookupType(internalName, (HotSpotResolvedObjectType) classLoaderDelegate, required);
226+
} catch (Exception e) {
227+
if (TRANSLATED_EXCEPTION != null && TRANSLATED_EXCEPTION.isInstance(e)) {
228+
/*
229+
* As of JDK 24 (JDK-8335553), a translated exception is boxed in a
230+
* TranslatedException. Unbox a translated unchecked exception as they are the only
231+
* ones that can be expected by callers since this method is not declared in checked
232+
* exceptions.
233+
*/
234+
Throwable cause = e.getCause();
235+
if (cause instanceof Error) {
236+
throw (Error) cause;
237+
}
238+
if (cause instanceof RuntimeException) {
239+
throw (RuntimeException) cause;
240+
}
241+
}
242+
throw e;
243+
}
213244
if (jt instanceof UnresolvedJavaType) {
214245
if (required) {
215246
throw new NoClassDefFoundError(internalName);

0 commit comments

Comments
 (0)